Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@olavloite
Copy link

Adds a generic data store for JDBC parameters. JDBC parameters are position based, and can be set in any order. They are therefore stored in an ArrayList that may contain null values for parameters that have not yet been set.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 29, 2019
@olavloite olavloite requested a review from kolea2 July 29, 2019 08:58
@olavloite olavloite force-pushed the spanner-jdbc-24-jdbc-parameter-store branch from 413cf9a to 8c10642 Compare July 30, 2019 08:23
@olavloite olavloite requested a review from kolea2 July 30, 2019 08:24
is(equalTo(JdbcArray.createArray("INT64", new Long[] {1L, 2L, 3L}))));
verifyParameter(params, Value.int64Array(new long[] {1, 2, 3}));

params.setParameter(1, JdbcArray.createArray("FLOAT64", new Double[] {1D, 2D, 3D}),
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add in some additional test cases with null values?

Copy link
Author

Choose a reason for hiding this comment

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

Added tests with null values in the array, as well as setting a null value as an array parameter.

@olavloite olavloite requested a review from kolea2 July 30, 2019 19:39
@olavloite olavloite merged commit 52c3f6a into googleapis:spanner-jdbc Jul 31, 2019
olavloite added a commit to olavloite/google-cloud-java that referenced this pull request Aug 5, 2019
…is#5909)

* add parameter store for jdbc parameters

* add null check

* added additional test statements

* added tests for null values in array and null-array
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.

3 participants