Martin Simka (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYzQ1NzMwY2M4...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16314?atlOrigin=eyJpIjoiYzQ1Nz...
) HHH-16314 (
https://hibernate.atlassian.net/browse/HHH-16314?atlOrigin=eyJpIjoiYzQ1Nz...
) NativeQueryResultTypeAutoDiscoveryTest#dateTimeTypes fails on Sybase (
https://hibernate.atlassian.net/browse/HHH-16314?atlOrigin=eyJpIjoiYzQ1Nz...
)
Issue Type: Bug Affects Versions: 6.2.0.CR3 Assignee: Unassigned Components:
hibernate-core, testsuite Created: 15/Mar/2023 07:06 AM Environment: Hibernate ORM
6.2.0.CR3 + Sybase 16.0 + Sybase JDBC driver (jConnect (TM) for JDBC(TM)/16.0 SP04 PL03
(Build 27544) + extra connection parameters: `SQLINITSTRING=set quoted_identifier
on&SQLINITSTRING=set ansinull on` Priority: Major Reporter: Martin Simka (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
NativeQueryResultTypeAutoDiscoveryTest#dateTimeTypes fail on Sybase with
java.lang.AssertionError:
Expected: an instance of java.sql.Date
but: <2014-11-15 00:00:00.0> is a com.sybase.jdbc4.tds.SybTimestamp
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:964)
at org.junit.Assert.assertThat(Assert.java:930)
at
org.hibernate.orm.test.jpa.query.NativeQueryResultTypeAutoDiscoveryTest.lambda$doTest$6(NativeQueryResultTypeAutoDiscoveryTest.java:354)
at
org.hibernate.testing.transaction.TransactionUtil.doInJPA(TransactionUtil.java:258)
at
org.hibernate.testing.transaction.TransactionUtil.doInJPA(TransactionUtil.java:299)
at
org.hibernate.orm.test.jpa.query.NativeQueryResultTypeAutoDiscoveryTest.doTest(NativeQueryResultTypeAutoDiscoveryTest.java:347)
at
org.hibernate.orm.test.jpa.query.NativeQueryResultTypeAutoDiscoveryTest.doTest(NativeQueryResultTypeAutoDiscoveryTest.java:322)
at
org.hibernate.orm.test.jpa.query.NativeQueryResultTypeAutoDiscoveryTest.dateTimeTypes(NativeQueryResultTypeAutoDiscoveryTest.java:301
Perhaps there might be some type conversion or test should be skipped on Sybase (as it is
already on Oracle and EDB)?
(
https://hibernate.atlassian.net/browse/HHH-16314#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16314#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100217- sha1:fd7c927 )