Skip to content

Bump the GAX version#1688

Merged
michaelbausor merged 2 commits intogoogleapis:masterfrom
michaelbausor:bump-gax-version
Mar 3, 2017
Merged

Bump the GAX version#1688
michaelbausor merged 2 commits intogoogleapis:masterfrom
michaelbausor:bump-gax-version

Conversation

@michaelbausor
Copy link
Copy Markdown
Contributor

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 3, 2017
@garrettjonesgoogle
Copy link
Copy Markdown
Contributor

Fix the version of gax that spanner uses while you're at it: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/google-cloud-spanner/pom.xml#L132 (use the variable instead of a fixed version here)

@garrettjonesgoogle
Copy link
Copy Markdown
Contributor

LGTM

@michaelbausor
Copy link
Copy Markdown
Contributor Author

Note: merging before Travis is complete because this is a low-risk change, and has passed on 3 platforms.

@michaelbausor michaelbausor merged commit cab0eb8 into googleapis:master Mar 3, 2017
@michaelbausor michaelbausor deleted the bump-gax-version branch March 3, 2017 18:29
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 81.202% when pulling 6bb3529 on michaelbausor:bump-gax-version into ea957e0 on GoogleCloudPlatform:master.

chingor13 pushed a commit that referenced this pull request Jan 22, 2026
* chore(main): release 2.25.1

* chore: generate libraries at Fri Dec 13 18:28:02 UTC 2024

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: cloud-java-bot <cloud-java-bot@google.com>
chingor13 pushed a commit that referenced this pull request Feb 24, 2026
chingor13 pushed a commit that referenced this pull request Mar 12, 2026
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
* fix: support getShort for DATA_TYPE in TypeInfo

The ResultSet that is returned by DatabaseMetadata#getTypeInfo has
a column at index 2 with the name DATA_TYPE. This field should
contain one of the java.sql.Types constants, or a vendor-specific
type code. The JDBC specification states that this column should
be a `short` (although the constants in java.sql.Types are of
type `int`).
Cloud Spanner (at the time of writing) does not support any int16
fields. The type code is therefore returned as an int64. The codes
that are used for vendor-specific types by Spanner exceed the max
value of a `short`, and therefore resulted in an OUT_OF_RANGE
exception if you tried to call `ResultSet#getShort(int)` on
this column for any of the Spanner-specific types (e.g. JSON).

This change fixes that by adding an additional vendor type code
for these types that does fit in a `short`. This value is
returned when `getShort(int)` is called on the ResultSet.

Fixes googleapis#1688

* chore: cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants