Closed Destinyless closed 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
any chance this bug may be fixed?
any update?
Hi @Destinyless ,
I see the ODBC definitions of the column here:
name: 'SOCI_LIMITE_ORDINE', dataType: 3, columnSize: 10, decimalDigits: 2, nullable: true
What DBMS are you defining this data in, and what is the native definition of the column that is defined? That might help me determine what's going on. A quick look at the code and it seems like SQL_DECIMAL
should be binding to SQL_CHAR
, and therefore returning the correct data (not converting to an int or sometihng like that...)
In fact, this line here proves its binding as a char:
[ODBC][605123][1674466610.185524][SQLBindCol.c][245] Entry: Statement = 0x7f0efc000d40 Column Number = 1 T [ODBC][605123][1674466610.185524][SQLBindCol.c][245] Entry: Statement = 0x7f0efc000d40 Column Number = 1 Target Type = 1 SQL_CHAR Target Value = 0x7f0efc004220 Buffer Length = 12
I wonder... the buffer length is adding +2, I wonder if it should be adding +3 (sign, decimal, and null-terminator)...
@markdirish The data are stored on Vision 4 files (AcuCobol) and https://www.microfocus.com/documentation/xdbc/unix20/GUID-EACB78E2-70D2-4EBF-B3F4-A96AA2206838.html you can find the docs about their XDBC driver that allows queries on the non-db files. It works fine with Java Vortex Driver and Windows's ODBC
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I guess this issue ain't going to be fixed? @markdirish it's indeed returning SQL_CHAR but without the decimal part, that's why I said integer (by mistake)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale
is there any update ?
is there any update ?
not that I know of, and sadly it's still not working
odbc
Package Version: 2.4.6 ODBC Driver: AcuXDBC Database OS: RHE 8 Node.js Version: 18.12.1 Node.js OS: AlmaLinux 9Selecting columns with decimal digits returns only the interger part.
Attaching log and trace.
Let me know if you need any other info.
executed query and output of result :
ODBC trace log :