Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

fix: include COLUMN_DEFAULT in the returned metadata#1937

Merged
olavloite merged 1 commit intomainfrom
include-column-default-in-metadata
Feb 27, 2025
Merged

fix: include COLUMN_DEFAULT in the returned metadata#1937
olavloite merged 1 commit intomainfrom
include-column-default-in-metadata

Conversation

@olavloite
Copy link
Copy Markdown
Collaborator

Include the COLUMN_DEFAULT value in the DatabaseMetaData that is returned for the getColumns() method. These were missing, as Spanner previously did not support default values.

Include the COLUMN_DEFAULT value in the DatabaseMetaData that is returned
for the getColumns() method. These were missing, as Spanner previously did
not support default values.
@olavloite olavloite requested review from a team February 27, 2025 13:29
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner-jdbc API. labels Feb 27, 2025
olavloite added a commit to cloudspannerecosystem/liquibase-spanner that referenced this pull request Feb 27, 2025
The Spanner Liquibase provider executes an extra query to get the column
default value, as the Spanner JDBC driver does not include that in the
metadata it returns.

This will be fixed in googleapis/java-spanner-jdbc#1937
@olavloite olavloite merged commit 98eb542 into main Feb 27, 2025
@olavloite olavloite deleted the include-column-default-in-metadata branch February 27, 2025 14:09
olavloite added a commit to cloudspannerecosystem/liquibase-spanner that referenced this pull request Feb 27, 2025
The Spanner Liquibase provider executes an extra query to get the column
default value, as the Spanner JDBC driver does not include that in the
metadata it returns.

This will be fixed in googleapis/java-spanner-jdbc#1937
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/java-spanner-jdbc API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant