DatabaseMetaData.getTypeInfo column FIXED_PREC_SCALE may have wrong value for some types [JDBC515] #551
Labels
affect-version: Jaybird 2.2.12
affect-version: Jaybird 2.2.13
affect-version: Jaybird 2.2.14
affect-version: Jaybird 2.2.15
affect-version: Jaybird 3.0.0
affect-version: Jaybird 3.0.1
affect-version: Jaybird 3.0.2
affect-version: Jaybird 3.0.3
affect-version: Jaybird 3.0.4
affect-version: Jaybird 4
affect-version: Jaybird 5
component: jdbc driver
fix-version: Jaybird 6
priority: minor
type: bug
Milestone
Submitted by: @mrotteveel
In DatabaseMetaData.getTypeInfo, column FIXED_PREC_SCALE we currently return true for all types that have a fixed precision and scale, the JDBC apidoc however says "FIXED_PREC_SCALE boolean => can it be a money value.", and for example BOOLEAN, all integral types, date/time types etc are not suitable for money values, and string and binary types are also debatable.
Change this to be conservative and only return true for NUMERIC and DECIMAL.
(and maybe check what other drivers do)
The text was updated successfully, but these errors were encountered: