Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: support untyped values for statement parameters #1854

Merged
merged 5 commits into from
Apr 28, 2022
Merged

Conversation

olavloite
Copy link
Collaborator

Adds support for untyped values that can be used as statement
parameters. This is required for Spangres, as many native PG drivers
send (some) parameters without an explicit type, and expect the backend
to infer the type from the context. If we were to include a
(placeholder) type for such a parameter, the type inference on the
backend fails.

This is required for GoogleCloudPlatform/pgadapter#125

Adds support for untyped values that can be used as statement
parameters. This is required for Spangres, as many native PG drivers
send (some) parameters without an explicit type, and expect the backend
to infer the type from the context. If we were to include a
(placeholder) type for such a parameter, the type inference on the
backend fails.
Adds support for untyped values that can be used as statement
parameters. This is required for Spangres, as many native PG drivers
send (some) parameters without an explicit type, and expect the backend
to infer the type from the context. If we were to include a
(placeholder) type for such a parameter, the type inference on the
backend fails.
@olavloite olavloite requested a review from a team as a code owner April 25, 2022 19:02
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner API. labels Apr 25, 2022
@ansh0l ansh0l removed the request for review from rahul2393 April 27, 2022 08:46
Copy link
Contributor

@ansh0l ansh0l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@olavloite : I'm just wondering if untyped is the right name, or should we call it a genericPgType or something different.

@olavloite olavloite requested a review from a team as a code owner April 28, 2022 12:00
@olavloite
Copy link
Collaborator Author

LGTM.

@olavloite : I'm just wondering if untyped is the right name, or should we call it a genericPgType or something different.

(See offline answer.)

@olavloite olavloite merged commit 182906f into main Apr 28, 2022
@olavloite olavloite deleted the untyped-values branch April 28, 2022 14:13
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 API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants