Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatabaseMetaData.getTypeInfo column FIXED_PREC_SCALE may have wrong value for some types [JDBC515] #551

Closed
firebird-automations opened this issue Jan 17, 2018 · 1 comment

Comments

@firebird-automations
Copy link

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)

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

priority: Major [ 3 ] => Minor [ 4 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment