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

Skip to content

Conversation

@olavloite
Copy link

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.

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

@Override
public void setBoolean(int parameterIndex, boolean x) throws SQLException {
Copy link
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
Author

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
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
Author

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
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
Author

Choose a reason for hiding this comment

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

Added test case.

@olavloite olavloite force-pushed the spanner-jdbc-26-jdbc-statements branch from 03c7264 to 75588f2 Compare July 30, 2019 08:02
@olavloite olavloite merged commit 9402105 into googleapis:spanner-jdbc Jul 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 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