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

chore: support simple statement param metadata#2163

Merged
gcf-merge-on-green[bot] merged 1 commit intomainfrom
simple-param-metadata
Jul 31, 2025
Merged

chore: support simple statement param metadata#2163
gcf-merge-on-green[bot] merged 1 commit intomainfrom
simple-param-metadata

Conversation

@olavloite
Copy link
Copy Markdown
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 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 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.

2 participants