Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 428029574f7dbcdfa407b86b714b6503c2ced5dd
https://github.com/hibernate/hibernate-orm/commit/428029574f7dbcdfa407b86...
Author: Kaden Sharpin <kaden(a)cleaning-depot.ca>
Date: 2026-07-01 (Wed, 01 Jul 2026)
Changed paths:
M
hibernate-core/src/main/java/org/hibernate/query/sqm/tree/spi/select/SqmSelectStatement.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/query/criteria/CountQueryTests.java
Log Message:
-----------
HHH-20550 Copy CTEs in SqmSelectStatement.createCountQuery()
Currently `createCountQuery()` fails when trying to count a query
with CTE statements and groupings/is distinct. We now copy the
statements to match the `createExistsQuery()` implementation.
Co-authored-by: Christian Beikov <christian.beikov(a)gmail.com>
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-orm/settings/notifications