Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Data Truncation error in timesten

658831Sep 10 2008 — edited Sep 11 2008
Hi,

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?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 9 2008
Added on Sep 10 2008
3 comments
1,503 views