Martin Simka (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMjYyMzg1YmI3...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16306?atlOrigin=eyJpIjoiMjYyMz...
) HHH-16306 (
https://hibernate.atlassian.net/browse/HHH-16306?atlOrigin=eyJpIjoiMjYyMz...
) CountExpressionTest.testCountDistinctTuple fails on Sybase (
https://hibernate.atlassian.net/browse/HHH-16306?atlOrigin=eyJpIjoiMjYyMz...
)
Issue Type: Bug Assignee: Unassigned Components: hibernate-core, testsuite Created:
14/Mar/2023 08:26 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` Fix
Versions: 6.2.0 Priority: Major Reporter: Martin Simka (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
CountExpressionTest.testCountDistinctTuple fails on Sybase
java.lang.AssertionError: expected:<4> but was:<2>
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.failNotEquals(Assert.java:835)
at org.junit.Assert.assertEquals(Assert.java:120)
at org.junit.Assert.assertEquals(Assert.java:146)
at
org.hibernate.orm.test.query.hql.CountExpressionTest.lambda$testCountDistinctTuple$2(CountExpressionTest.java:107)
at
org.hibernate.testing.transaction.TransactionUtil.doInHibernate(TransactionUtil.java:371)
at
org.hibernate.orm.test.query.hql.CountExpressionTest.testCountDistinctTuple(CountExpressionTest.java:93)
Executed SQL query is
select
d1_0.id,
count_big( distinct coalesce ( nullif ( coalesce ( cast (l1_0.localized_KEY as varchar
(16384)), char (0)), ''), char (0)+' 1 ')+ char (0)+ coalesce ( nullif (
coalesce (l1_0.localized, char (0)),' '), char (0)+' 2'))
from
Document d1_0
left join
(Document_Person c1_0
join
Person c1_1
on c1_1.id=c1_0.contacts_id)
on d1_0.id=c1_0.Document_id
left join
Person_localized l1_0
on c1_1.id=l1_0.Person_id
group by
d1_0.id
(
https://hibernate.atlassian.net/browse/HHH-16306#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16306#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:7167dc8 )