Data Truncation error in timesten
658831Sep 10 2008 — edited Sep 11 2008Hi,
I am getting data truncation error in TimesTen Driver. Following is the stack trace for the same.
java.sql.DataTruncation: Data truncation
at com.timesten.jdbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:319)
at com.timesten.jdbc.JdbcOdbcPreparedStatement.executeUpdate(JdbcOdbcPreparedStatement.java:243)
at TimesTenTest3.<init>(TimesTenTest3.java:274)
at TimesTenTest3.main(TimesTenTest3.java:317)
If the date field is set using setDate of prepared statement error is not coming but setTimestamp throws the above mentioned error. If the same application is run on Oracle it works fine but the problem does occur with timesten.
Is anyone aware of such issue?