HHH-9869 - SizeExpression toString is misleading
This commit is contained in:
parent
ad704a194e
commit
45dd596c4f
|
@ -6,6 +6,8 @@
|
|||
*/
|
||||
package org.hibernate.criterion;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.HibernateException;
|
||||
import org.hibernate.engine.spi.TypedValue;
|
||||
|
@ -45,6 +47,7 @@ public class SizeExpression implements Criterion {
|
|||
.setCondition( pk, fk );
|
||||
|
||||
return String.format(
|
||||
Locale.ROOT,
|
||||
"? %s (select count(*) from %s where %s)",
|
||||
op,
|
||||
cp.getTableName(),
|
||||
|
|
Loading…
Reference in New Issue