-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)type: bugA general bugA general bug
Milestone
Description
Roman Kalukiewicz opened SPR-2135 and commented
JdbcTemplate.queryForList returns rows with oracle.sql.DATE instead of java.sql.Timestamp so I have
Caused by: java.lang.ClassCastException: oracle.sql.DATE
at test.ServiceImpl.getRows(ServiceImpl.java:41)
at test.Bean.getRows(Bean.java:27)
This problem is handled for oracle.sql.TIMESTAMP in org.springframework.jdbc.support.JdbcUtils class, but still exists for oracle.sql.DATE.
In Oracle my database column is declared as TIMESTAMP(6).
Correct behavior is to convert oracle.sql.DATE to java.sql.Timestamp the same way it is done for oracle.sql.TIMESTAMP.
1 votes, 0 watchers
Metadata
Metadata
Assignees
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)type: bugA general bugA general bug