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
Ensure DatabaseMetaData includes all required columns [JDBC193] #241
Comments
Modified by: @mrotteveelFix Version: Jaybird 2.2 [ 10053 ] |
Modified by: @mrotteveelassignee: Roman Rokytskyy [ rrokytskyy ] => Mark Rotteveel [ avalanche1979 ] |
Commented by: @mrotteveel Added columns to metadata. The getProcedureColumns needs some ODS specific retrieval of information. Also need to investigate the intention of some of the columns (eg ORDINAL_POSITION of getProcedureColumns has a vague description). The index of OWNER_NAME in getTables() has changed as this column is Jaybird specific and not defined in JDBC. Also need to check other methods for missing columns. |
Commented by: @mrotteveel Extra tests for metadata are required as well: I forgot to increase some array sizes. |
Commented by: @mrotteveel Added test for getColumns() During writing the tests I also made the following changes: |
Commented by: @mrotteveel Added support for IS_GENERATEDCOLUMN (which identifies COMPUTED BY / GENERATED ALWAYS AS columns), rewrote getColumns() metadata tests to reduce duplication and potential for typing errors. |
Commented by: @mrotteveel Update getColumns() metadata + refactored some things for other (future0 metadata tests I need to research the exact treatment of quoted vs unquoted identifiers in JDBC, as the standard is opaque about the following: |
Modified by: @mrotteveel |
Commented by: @mrotteveel * Added test for getUDTs() |
Commented by: @mrotteveel * Added tests for getProcedures() |
Commented by: @mrotteveel * Made some changes to getProcedureColumns to comply with expectations defined in JDBC spec and javadoc |
Modified by: @mrotteveel |
Commented by: @mrotteveel Procedures listed in this ticket have been updated. Created JDBC230 to add tests for other resultset-producing metadata methods in the future. |
Commented by: @mrotteveel Some of the changes I made use CASE WHEN, this was introduced with Firebird 1.5; rewrite so that Jaybird continues working with Firebird 1.0 |
Commented by: @mrotteveel Removed CASE constructs from metadata queries |
Modified by: @mrotteveelstatus: Resolved [ 5 ] => Closed [ 6 ] |
Submitted by: @mrotteveel
Relate to JDBC228
Is related to JDBC230
A number of methods of DatabaseMetaData need to be updated to include additional columns for JDBC 4.x compatibility.
Methods identified so far:
* getProcedures (1 extra column)
* getProcedureColumns (7 extra columns)
* getTables (5 extra columns)
* getColumns (6 extra columns)
* getUDTs (1 extra column)
Commits: 8de49a0 d30e4d7 6f4a06c 886fd32 a56e494 7e5cc9e dece951 6f729f9 d09e2bc 5499ee7 3e42bf7 8f9a191 5b30a6f 87f7fee c75d0c0 0c85a68 85a32b5 289f929 5702e18 2e75954
The text was updated successfully, but these errors were encountered: