Skip to content

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

Closed
ztarvos opened this issue Sep 5, 2018 · 1 comment
Closed

jdbc: DATE/TIME types cannot be used in prepared statement #43

ztarvos opened this issue Sep 5, 2018 · 1 comment
Assignees
Labels
bug Something isn't working jdbc
Milestone

Comments

@ztarvos
Copy link

ztarvos commented Sep 5, 2018

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)

@kyukhin kyukhin added the bug Something isn't working label Sep 20, 2018
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
@Totktonada
Copy link
Member

Closed in 991302c.

@Totktonada Totktonada added the jdbc label Nov 1, 2018
@Totktonada Totktonada added this to the JDBC MVP milestone Nov 1, 2018
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
Labels
bug Something isn't working jdbc
Projects
None yet
Development

No branches or pull requests

3 participants