-
Notifications
You must be signed in to change notification settings - Fork 19
jdbc: Data Type Conversion #235
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
Comments
Related case: prep = conn.prepareStatement("INSERT INTO test(id, val) VALUES (?, ?)");
HashMap<String, String> map = new HashMap<>();
map.put("foo", "bar");
prep.setInt(1, 1);
prep.setObject(2, map);
prep.execute(); will cause
or if a map is empty or has more than one entry:
Because the driver passes a map parameter "as-is" : tarantool-java/src/main/java/org/tarantool/jdbc/SQLPreparedStatement.java Lines 416 to 426 in 9392133
and the iproto expects the following format for bindings:
Thus, an ordinal parameter of |
To be more compatible with JDBC 4.2 spec we need to provide implicit type conversions when setting parameters or retrieving values at minimum according to Appendix B.
This issue affects the following API:
PreparedStatement.setXXX
family of methodsResultSet.getXXX
family of methods.DataBaseMetaData.supportsConvert
The text was updated successfully, but these errors were encountered: