Closed vkr-ayx closed 3 weeks ago
I'm using SingleStore driver 1.1.5. When calling SQLColAttribute function on FLOAT and DOUBLE columns, unexpected values are returned for SQL_DESC_PRECISION:
SQL_DESC_CONCISE_TYPE: 7 (= SQL_REAL) SQL_COLUMN_LENGTH: 4 SQL_DESC_OCTET_LENGTH: 4 SQL_DESC_LENGTH: 7 SQL_DESC_PRECISION: 48
According to the SingleStore documentation, precision of the FLOAT datatype is 23 bits. The value returned is 48.
SQL_DESC_CONCISE_TYPE: 8 (= SQL_DOUBLE) SQL_COLUMN_LENGTH: 8 SQL_DESC_OCTET_LENGTH: 8 SQL_DESC_LENGTH: 15 SQL_DESC_PRECISION: 0
For the DOUBLE type, the precision returned is 0, which is clearly wrong.
Querying table structure with mysql-client:
I'm using SingleStore driver 1.1.5. When calling SQLColAttribute function on FLOAT and DOUBLE columns, unexpected values are returned for SQL_DESC_PRECISION:
FLOAT:
SQL_DESC_CONCISE_TYPE: 7 (= SQL_REAL) SQL_COLUMN_LENGTH: 4 SQL_DESC_OCTET_LENGTH: 4 SQL_DESC_LENGTH: 7 SQL_DESC_PRECISION: 48
According to the SingleStore documentation, precision of the FLOAT datatype is 23 bits. The value returned is 48.
DOUBLE:
SQL_DESC_CONCISE_TYPE: 8 (= SQL_DOUBLE) SQL_COLUMN_LENGTH: 8 SQL_DESC_OCTET_LENGTH: 8 SQL_DESC_LENGTH: 15 SQL_DESC_PRECISION: 0
For the DOUBLE type, the precision returned is 0, which is clearly wrong.