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: support untyped NULL value parameters by olavloite · Pull Request #1224 · googleapis/java-spanner-jdbc

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

Conversation

@olavloite

@olavloite olavloite commented May 10, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Support untyped null parameter values for PreparedStatement. This will allow users to add null values as a statement parameter value without having to know what type the column that the parameter is bound to uses.

Sorry, something went wrong.

Uh oh!

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

All reactions
@olavloite
feat: support untyped NULL value parameters
efb2192
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: spanner Issues related to the googleapis/java-spanner-jdbc API. labels May 10, 2023
olavloite added 2 commits June 2, 2023 14:32
@olavloite
Merge branch 'main' into support-untyped-null-value-params
7426edd
@olavloite
test: add tests for untyped null parameter values
85add2e
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Jun 2, 2023
@olavloite
olavloite marked this pull request as ready for review June 2, 2023 13:23
@olavloite
olavloite requested review from a team and harshachinta June 2, 2023 13:23
olavloite added 2 commits June 2, 2023 15:30
@olavloite
fix: update metadata test with the new table
303dc90
@olavloite
test: add expected table for PG
6e02063
@olavloite
olavloite requested a review from rajatbhatta June 2, 2023 16:54
@harshachinta harshachinta mentioned this pull request Jun 7, 2023
feat: add Proto Columns support in JDBC #1252
Merged
harshachinta
harshachinta reviewed Jun 7, 2023
View reviewed changes
Comment thread src/main/java/com/google/cloud/spanner/jdbc/AbstractJdbcPreparedStatement.java Resolved

Uh oh!

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

harshachinta
harshachinta reviewed Jun 7, 2023
View reviewed changes
Comment thread src/test/java/com/google/cloud/spanner/jdbc/it/ITJdbcPreparedStatementTest.java Resolved

Uh oh!

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

rajatbhatta
rajatbhatta reviewed Jun 7, 2023
View reviewed changes

@rajatbhatta rajatbhatta left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

JSON and JSONB are nullable. But I see that the setNullValue() method does not cover JSON and JSONB data types (JsonType.VENDOR_TYPE_NUMBER and PgJsonbType.VENDOR_TYPE_NUMBER are missing from switch case). Can we add these too and verify once if all supported data types are included in the switch case so we do not miss out on any case? Let me know if we should do this as a separate exercise.

Sorry, something went wrong.

Uh oh!

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

All reactions
@olavloite
refactor: move logic to ParameterStore
2df0e37
@olavloite

olavloite commented Jun 7, 2023

Copy link
Copy Markdown
Contributor Author

JSON and JSONB are nullable. But I see that the setNullValue() method does not cover JSON and JSONB data types (JsonType.VENDOR_TYPE_NUMBER and PgJsonbType.VENDOR_TYPE_NUMBER are missing from switch case). Can we add these too and verify once if all supported data types are included in the switch case so we do not miss out on any case? Let me know if we should do this as a separate exercise.

Good point, I've added those to the switch case as well.

All reactions

Sorry, something went wrong.

Uh oh!

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

@olavloite
olavloite requested review from harshachinta and rajatbhatta June 7, 2023 19:11
rajatbhatta
rajatbhatta approved these changes Jun 7, 2023
View reviewed changes

@rajatbhatta rajatbhatta left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

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

All reactions
harshachinta
harshachinta approved these changes Jun 8, 2023
View reviewed changes

@harshachinta harshachinta left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

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

All reactions
@olavloite
olavloite merged commit 80d2b9d into main Jun 8, 2023
@olavloite
olavloite deleted the support-untyped-null-value-params branch June 8, 2023 06:16
@olavloite olavloite mentioned this pull request Jun 8, 2023
Support setting untyped null values as parameters on PreparedStatements #1221
Closed
@release-please release-please Bot mentioned this pull request Jun 12, 2023
chore(main): release 2.11.0 #1256
Merged
gcf-merge-on-green Bot pushed a commit that referenced this pull request Jun 12, 2023
@release-please
chore(main): release 2.11.0 (#1256)
cf417c1
🤖 I have created a release *beep* *boop*
---


## [2.11.0](https://togithub.com/googleapis/java-spanner-jdbc/compare/v2.10.0...v2.11.0) (2023-06-12)


### Features

* Support untyped NULL value parameters ([#1224](https://togithub.com/googleapis/java-spanner-jdbc/issues/1224)) ([80d2b9d](https://togithub.com/googleapis/java-spanner-jdbc/commit/80d2b9d3e4c3265522bbb20766bff1f164617711))


### Dependencies

* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.11.0 ([#1254](https://togithub.com/googleapis/java-spanner-jdbc/issues/1254)) ([41f40fc](https://togithub.com/googleapis/java-spanner-jdbc/commit/41f40fce634cea205d5e5a9c1eb567ecb97ff655))
* Update dependency com.google.cloud:google-cloud-spanner-bom to v6.42.3 ([#1248](https://togithub.com/googleapis/java-spanner-jdbc/issues/1248)) ([397d573](https://togithub.com/googleapis/java-spanner-jdbc/commit/397d5738a8126aaf090d533d0f20efb74a77a788))
* Update dependency com.google.cloud:google-cloud-spanner-bom to v6.43.0 ([#1255](https://togithub.com/googleapis/java-spanner-jdbc/issues/1255)) ([ffe36b6](https://togithub.com/googleapis/java-spanner-jdbc/commit/ffe36b6b2087157c8d895fa348cff614435a4735))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@harshachinta harshachinta harshachinta approved these changes
@rajatbhatta rajatbhatta rajatbhatta 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/java-spanner-jdbc API. size: m Pull request size is medium.

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.

3 participants

@olavloite @harshachinta @rajatbhatta
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 01402792 — 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.