forked from dork/tarantool-java
-
Notifications
You must be signed in to change notification settings - Fork 19
jdbc: DATE/TIME types cannot be used in prepared statement #43
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
ztarvos
added a commit
to ztarvos/tarantool-java
that referenced
this issue
Sep 26, 2018
Fixed exception when packing date/time parameters of prepared statement. Added test for parameter binding methods. Closes tarantool#43
ztarvos
added a commit
to ztarvos/tarantool-java
that referenced
this issue
Oct 10, 2018
Fixed exception when packing date/time parameters of prepared statement. Added test for parameter binding methods. Closes tarantool#43
ztarvos
added a commit
to ztarvos/tarantool-java
that referenced
this issue
Oct 10, 2018
Fixed exception when packing date/time parameters of prepared statement. Added test for parameter binding methods. Closes tarantool#43
Totktonada
pushed a commit
that referenced
this issue
Oct 29, 2018
Fixed exception when packing date/time parameters of prepared statement. Added test for parameter binding methods. Closes #43
Closed in 991302c. |
Totktonada
pushed a commit
that referenced
this issue
Dec 11, 2018
Fixed exception when packing date/time parameters of prepared statement. Added test for parameter binding methods. Closes #43
Totktonada
pushed a commit
that referenced
this issue
Dec 11, 2018
Fixed exception when packing date/time parameters of prepared statement. Added test for parameter binding methods. Closes #43
Totktonada
pushed a commit
that referenced
this issue
Dec 11, 2018
Fixed exception when packing date/time parameters of prepared statement. Added test for parameter binding methods. Closes #43
Totktonada
pushed a commit
that referenced
this issue
Dec 12, 2018
Fixed exception when packing date/time parameters of prepared statement. Added test for parameter binding methods. Closes #43
Totktonada
pushed a commit
that referenced
this issue
Dec 12, 2018
Fixed exception when packing date/time parameters of prepared statement. Added test for parameter binding methods. Closes #43
Totktonada
pushed a commit
that referenced
this issue
Dec 12, 2018
Fixed exception when packing date/time parameters of prepared statement. Added test for parameter binding methods. Closes #43
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following API methods appear to be implemented, but fail with exception
PreparedStatement.setDate()
PreparedStatement.setTime()
Exception in thread "main" java.lang.IllegalArgumentException: Cannot msgpack object of type java.sql.Date at org.tarantool.MsgPackLite.pack(MsgPackLite.java:207) at org.tarantool.jdbc.SQLMsgPackLite.pack(SQLMsgPackLite.java:27) at org.tarantool.MsgPackLite.pack(MsgPackLite.java:188) at org.tarantool.jdbc.SQLMsgPackLite.pack(SQLMsgPackLite.java:27) at org.tarantool.MsgPackLite.pack(MsgPackLite.java:204) at org.tarantool.jdbc.SQLMsgPackLite.pack(SQLMsgPackLite.java:27) at org.tarantool.TarantoolBase.createPacket(TarantoolBase.java:125) at org.tarantool.TarantoolConnection.exec(TarantoolConnection.java:27) at org.tarantool.TarantoolConnection.sql(TarantoolConnection.java:77) at org.tarantool.TarantoolConnection.update(TarantoolConnection.java:66) at org.tarantool.JDBCBridge.update(JDBCBridge.java:38) at org.tarantool.jdbc.SQLPreparedStatement.executeUpdate(SQLPreparedStatement.java:60) at TestJdbcDateTime.main(TestJdbcDateTime.java:23)
The text was updated successfully, but these errors were encountered: