Skip to content

spanner-jdbc: Step 24 - Parameter store for jdbc parameters - #5909

Merged
olavloite merged 4 commits into
googleapis:spanner-jdbcfrom
olavloite:spanner-jdbc-24-jdbc-parameter-store
Jul 31, 2019
Merged

spanner-jdbc: Step 24 - Parameter store for jdbc parameters#5909
olavloite merged 4 commits into
googleapis:spanner-jdbcfrom
olavloite:spanner-jdbc-24-jdbc-parameter-store

Conversation

@olavloite

Copy link
Copy Markdown
Contributor

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.

@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 29, 2019
@olavloite
olavloite requested a review from kolea2July 29, 2019 08:58
@olavloite
olavloiteforce-pushed the spanner-jdbc-24-jdbc-parameter-store branch from 413cf9a to 8c10642CompareJuly 30, 2019 08:23
@olavloite
olavloite requested a review from kolea2July 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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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 kolea2July 30, 2019 19:39
@olavloite
olavloite merged commit 52c3f6a into googleapis:spanner-jdbcJul 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@olavloite@kolea2@googlebot