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

Fix DatabaseMetaData.getColumns nullability inconsistency #15214

Merged
merged 2 commits into from Nov 30, 2022

Conversation

findepi
Copy link
Member

@findepi findepi commented Nov 28, 2022

DatabaseMetaData.getColumns reports nullability in two result columns

  • NULLABLE, a number (0, 1, 2)
  • IS_NULLABLE, a varchar column ("YES", "NO", "")

This fixes the TrinoDatabaseMetaData so that information returned in
those two ways is consistent.

@findepi findepi added the jdbc Relates to Trino JDBC driver label Nov 28, 2022
@cla-bot cla-bot bot added the cla-signed label Nov 28, 2022
Make it easier to map values to columns.
`DatabaseMetaData.getColumns` reports nullability in two result columns

- NULLABLE, a number (0, 1, 2)
- IS_NULLABLE, a varchar column ("YES", "NO", "")

This fixes the `TrinoDatabaseMetaData` so that information returned in
those two ways is consistent.
@findepi findepi merged commit a5d64cc into trinodb:master Nov 30, 2022
@findepi findepi deleted the findepi/jdbc-enh branch November 30, 2022 15:37
@findepi findepi mentioned this pull request Nov 30, 2022
@github-actions github-actions bot added this to the 404 milestone Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed jdbc Relates to Trino JDBC driver
Development

Successfully merging this pull request may close these issues.

None yet

3 participants