GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add support for PG.OID in parameterized queries by larkee · Pull Request #1035 · googleapis/python-spanner

This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Conversation

@larkee

@larkee larkee commented Nov 13, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR adds support for using PG.OID values in parameterized SELECT queries.

For example:

with database.snapshot() as snapshot:
  results = snapshot.execute_sql(
    "SELECT $1",
    params = {"p1": 123},
    param_types = {"p1": spanner.param_types.PG_OID})
    for row in results:
      print(row)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@larkee
larkee requested review from a team November 13, 2023 23:50
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: spanner Issues related to the googleapis/python-spanner API. labels Nov 13, 2023
larkee added 5 commits March 21, 2024 13:17
@larkee
feat: add support for PG.OID in parameterized queries
4605686
@larkee
test: add tests for PG.OID bindings
23f41e1
@larkee
test: add test to check that the PG.OID param type is correct
83914f8
@larkee
lint: fix lint
d097169
@larkee
test: correct new test name
73c687d
@larkee
larkee force-pushed the pg-oid-support branch from 4947c10 to 73c687d Compare March 21, 2024 00:17
harshachinta
harshachinta approved these changes Apr 8, 2024
View reviewed changes
@larkee
larkee merged commit ea5efe4 into googleapis:main Apr 8, 2024
@release-please release-please Bot mentioned this pull request Apr 8, 2024
chore(main): release 3.45.0 #1123
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@harshachinta harshachinta harshachinta approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: spanner Issues related to the googleapis/python-spanner API. size: s Pull request size is small.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@larkee @harshachinta
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.