Fixed
Details
Assignee
Christian BeikovChristian BeikovReporter
Giovanni LovatoGiovanni LovatoComponents
Fix versions
Priority
Major
Details
Details
Assignee
Christian Beikov
Christian BeikovReporter
Giovanni Lovato
Giovanni LovatoComponents
Fix versions
Priority
Created August 12, 2016 at 1:50 PM
Updated October 11, 2021 at 6:26 PM
Resolved September 23, 2021 at 4:04 PM
Regardless of having
supportsTupleDistinctCounts
returningfalse
on the selected dialect, Hibernate tries to do aCOUNT(DISTINCT col1_, col2_)
when counting entities with an embedded id and the JDBC driver throws aIncorrect syntax near ','
exception.I suppose this is a limitation of SQL Server, but in my opinion this should not throw an exception and also it should be somehow possible to instruct the dialect to replace the
COUNT(DISTINCT col1_, col2_)
syntax with aCOUNT(DISTINCT CHECKSUM(col1_, col2_))
which may work even in SQL Server.This was initially discussed within HHH-7165.