heavyai / heavyai-jdbc

A JDBC driver for connecting to an HeavyAI GPU database and running queries.
https://www.heavy.ai/
Other
9 stars 16 forks source link

JDBC driver incorrect scale returned for float type in a ResultSet #7

Open mainstreet439 opened 6 years ago

mainstreet439 commented 6 years ago

When the column of the Resultset is described, the driver returns a scale of -2147483648

select cast ( '1.0' as float) from tversion

ColumnIndex getColumnName getColumnTypeName getPrecision getScale isNullable getTableName getSchemaName getCatalogName getColumnClassName getColumnDisplaySize getColumnLabel getColumnType isAutoIncrement isCaseSensitive isCurrency isDefinitelyWritable isReadOnly isSearchable isSigned isWritable 1 EXPR$0 FLOAT 15 -2147483648 1 tableName?? 100 EXPR$0 6 false true false false true false true false