Skip to content

chore: support untyped values for statement parameters#1854

Merged
olavloite merged 5 commits intomainfrom
untyped-values
Apr 28, 2022
Merged

chore: support untyped values for statement parameters#1854
olavloite merged 5 commits intomainfrom
untyped-values

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 review from a team, ansh0l and rahul2393 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
@olavloite olavloite requested a review from rajatbhatta April 27, 2022 05:55
@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 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