| Summary: | [HHH-8517] ResultSet#getDate includes time in oracle12c JDBC | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Martin Simka <msimka> |
| Component: | Hibernate | Assignee: | Brett Meyer <brmeyer> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Zbyněk Roubalík <zroubali> |
| Severity: | medium | Docs Contact: | Russell Dickenson <rdickens> |
| Priority: | unspecified | ||
| Version: | 6.2.0 | CC: | dosoudil, lcosti, theute |
| Target Milestone: | ER4 | ||
| Target Release: | EAP 6.2.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
HHH-8517 ResultSet#getDate includes time in oracle12c JDBC
https://hibernate.atlassian.net/browse/HHH-8517
Hibernate relies on JDBC's ResultSet#getDate to populate an entity's Date properties during a query. Most DBs strip out the time for that call, but oracle12c appears to keep it (incorrectly). Adding handling to ensure it's stripped.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-12-15 16:22:18 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 1010467, 1011861 | ||
|
Description
Martin Simka
2013-09-18 14:37:22 UTC
@Brett fyi: I've checked timezone setting on all oracle databases we certify for EAP 6.1.1/ 6.2.0 SELECT DBTIMEZONE FROM DUAL; oracle12c, oracle11gR1RAC, oracle11gR2RAC: +00:00 oracle11gR1, oracle11gR2: -04:00 SELECT SESSIONTIMEZONE FROM DUAL; all: Europe/Prague (-- that is what I'd expect) SELECT CURRENT_TIMESTAMP FROM DUAL: all: my current time (I'd expect this too) so from my point of view it's not configuration issue (or I'm lost in timezones of dbs, jenkins hosts, ...) Martin, thanks for checking. But, we did find a legitimate "issue" due to inconsistency in the new JDBC driver. We rely on JDBC's ResultSet#getDate to populate an entity's Date properties during a query. Most DBs strip out the time for that call, but oracle12c appears to keep it (incorrectly). Adding handling to ensure it's stripped. Correct upstream, but holding off for EAP 6.3.0. Actually, this will go into EAP 6.2.0 ER4's upgrade to Hibernate ORM 4.2.6.Final in 1010467. verified on EAP 6.2.0.ER5 1022581 will revert this change and instead correct the failing test. A community member pointed out a tricky regression in our approach. See https://hibernate.atlassian.net/browse/HHH-8617 for more info. What do we do to this ticket? |