8000 spanner-jdbc: Fix and add tests for JdbcTypeConverter by olavloite · Pull Request #6150 · googleapis/google-cloud-java · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@olavloite
Copy link

This PR adds tests for JdbcTypeConverter which is used by the JdbcResultSet class to convert data in the database to a different type than the base type (i.e. returning data from an INT64 column as an Integer instead of a Long). The file also contains convert methods for dates, timestamps and time values.

The conversion of values from one type to another has been slightly changed to support all conversions that are specified as required by JDBC, in addition to removing conversion that would loose data, such as from FLOAT64 to Integer.

The method for getting a Timestamp column as a java.sql.Time has been changed to reuse the logic of the getAsSqlTimestamp to correctly handle timezones.

@olavloite olavloite requested review from kolea2 and skuruppu August 24, 2019 13:46
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 24, 2019
@olavloite olavloite added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 26, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 26, 2019
@kolea2 kolea2 merged commit 20f5a4c into googleapis:master Aug 26, 2019
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

0