-
Notifications
You must be signed in to change notification settings - Fork 1.1k
spanner-jdbc: Step 26 - JDBC Statement and PreparedStatement implementation #5911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spanner-jdbc: Step 26 - JDBC Statement and PreparedStatement implementation #5911
Conversation
| } | ||
|
|
||
| @Override | ||
| public void setBoolean(int parameterIndex, boolean x) throws SQLException { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test case?
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added test case.
03c7264 to
75588f2
Compare
…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
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.