Skip to content

Oracle oracle.sql.DATE not supported [SPR-2135] #6826

@spring-projects-issues

Description

@spring-projects-issues

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

No one assigned

    Labels

    in: dataIssues in data modules (jdbc, orm, oxm, tx)type: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions