Skip to content

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

@ztarvos

Description

@ztarvos

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)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingjdbc

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions