Skip to content

spanner-jdbc: Step 26 - JDBC Statement and PreparedStatement implementation - #5911

Merged
olavloite merged 5 commits into
googleapis:spanner-jdbcfrom
olavloite:spanner-jdbc-26-jdbc-statements
Jul 30, 2019
Merged

spanner-jdbc: Step 26 - JDBC Statement and PreparedStatement implementation#5911
olavloite merged 5 commits into
googleapis:spanner-jdbcfrom
olavloite:spanner-jdbc-26-jdbc-statements

Conversation

@olavloite

Copy link
Copy Markdown
Contributor

Adds implementations for java.sql.Statement and java.sql.PreparedStatements. The most important task for these classes is to convert positional JDBC parameters to Cloud Spanner named parameters.

@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 09:52
}

@Override
public void setBoolean(int parameterIndex, boolean x) throws SQLException {

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.

minor - please rename all x variables - value maybe?

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.

x variables have been renamed to value.

}

@Override
public ResultSetMetaData getMetaData() throws SQLException {

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.

test case?

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 test case.

}

@Override
public ResultSet getGeneratedKeys() throws SQLException {

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.

test case

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 test case.

@olavloite
olavloiteforce-pushed the spanner-jdbc-26-jdbc-statements branch from 03c7264 to 75588f2CompareJuly 30, 2019 08:02
@olavloite
olavloite merged commit 9402105 into googleapis:spanner-jdbcJul 30, 2019
olavloite added a commit to olavloite/google-cloud-java that referenced this pull request Aug 5, 2019
…tation (googleapis#5911)
* add jdbc Statement and PreparedStatement implementation
* updated CR year
* return successful/failed ddl statements
* changed variable names from x to value
* added missing test cases
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