Skip to content

Conversation

@olavloite
Copy link
Collaborator

Add an option to use simple PreparedStatement ParameterMetadata that only uses client-side information. This prevents round-trips to Spanner when calling the method PreparedStatement#getParameterMetaData(), for example when these are triggered by frameworks like Spring Data.

This option is experimental and could be removed in future releases.

The option can be enabled by setting the system property spanner.jdbc.use_simple_parameter_metadata=true

Add an option to use simple PreparedStatement ParameterMetadata that only uses
client-side information. This prevents round-trips to Spanner when calling the
method PreparedStatement#getParameterMetaData(), for example when these are
triggered by frameworks like Spring Data.

This option is experimental and could be removed in future releases.

The option can be enabled by setting the system property
`spanner.jdbc.use_simple_parameter_metadata=true`
@olavloite olavloite requested a review from a team as a code owner July 31, 2025 14:49
@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 Jul 31, 2025
@olavloite olavloite added the automerge Merge the pull request once unit tests and other checks pass. label Jul 31, 2025
@gcf-merge-on-green gcf-merge-on-green bot merged commit b94e4c5 into main Jul 31, 2025
26 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jul 31, 2025
@gcf-merge-on-green gcf-merge-on-green bot deleted the simple-param-metadata branch July 31, 2025 15:16
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.

2 participants