Skip to content

Conversation

olavloite
Copy link
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 as code owners 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
22 checks passed
@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 join this conversation on GitHub. Already have an account? Sign in to comment
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