Fix IS_NULLABLE in DatabaseMetaData.getColumns#665
Merged
staticlibs merged 1 commit intoduckdb:mainfrom Apr 19, 2026
Merged
Conversation
This PR fixes the output type and value of the `IS_NULLABLE` column of the `DatabaseMetaData#getColumns()` method ([ref](https://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html#getColumns-java.lang.String-java.lang.String-java.lang.String-java.lang.String-)). It was inadvertently broken by duckdb#639 that changed the underlying query to use `duckdb_columns()` instead of `information_schema.columns` view, that returns almost the same columns, but not exactly ([impl](https://github.com/duckdb/duckdb/blob/e64b98f66712b9674897bb27f7f417e5e88fb4be/src/catalog/default/default_views.cpp#L51)). Fixes: duckdb#664
staticlibs
added a commit
to staticlibs/duckdb-java
that referenced
this pull request
Apr 19, 2026
This is a backport of the PR duckdb#665 to v1.5-variegata stable branch. This PR fixes the output type and value of the `IS_NULLABLE` column of the `DatabaseMetaData#getColumns()` method ([ref](https://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html#getColumns-java.lang.String-java.lang.String-java.lang.String-java.lang.String-)). It was inadvertently broken by duckdb#639 that changed the underlying query to use `duckdb_columns()` instead of `information_schema.columns` view, that returns almost the same columns, but not exactly ([impl](https://github.com/duckdb/duckdb/blob/e64b98f66712b9674897bb27f7f417e5e88fb4be/src/catalog/default/default_views.cpp#L51)). Fixes: duckdb#664
staticlibs
added a commit
that referenced
this pull request
Apr 19, 2026
This is a backport of the PR #665 to v1.5-variegata stable branch. This PR fixes the output type and value of the `IS_NULLABLE` column of the `DatabaseMetaData#getColumns()` method ([ref](https://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html#getColumns-java.lang.String-java.lang.String-java.lang.String-java.lang.String-)). It was inadvertently broken by #639 that changed the underlying query to use `duckdb_columns()` instead of `information_schema.columns` view, that returns almost the same columns, but not exactly ([impl](https://github.com/duckdb/duckdb/blob/e64b98f66712b9674897bb27f7f417e5e88fb4be/src/catalog/default/default_views.cpp#L51)). Fixes: #664
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes the output type and value of the
IS_NULLABLEcolumn of theDatabaseMetaData#getColumns()method (ref).It was inadvertently broken by #639 that changed the underlying query to use
duckdb_columns()instead ofinformation_schema.columnsview, that returns almost the same columns, but not exactly (impl).Fixes: #664