Open Naros opened 9 years ago
Using the following HQL: SELECT fieldA, COUNT(DISTINCT CONCAT(fieldB,'-',fieldC,'-',fieldD)) FROM Entity GROUP BY fieldA
SELECT fieldA, COUNT(DISTINCT CONCAT(fieldB,'-',fieldC,'-',fieldD)) FROM Entity GROUP BY fieldA
The parser throws the following error: org.hibernate.hql.internal.ast.ErrorCounter: expecting CLOSE, found '(' at antlr.Parser.match(Parser.java:211)
org.hibernate.hql.internal.ast.ErrorCounter: expecting CLOSE, found '(' at antlr.Parser.match(Parser.java:211)
The same problem
Using the following HQL:
SELECT fieldA, COUNT(DISTINCT CONCAT(fieldB,'-',fieldC,'-',fieldD)) FROM Entity GROUP BY fieldA
The parser throws the following error:
org.hibernate.hql.internal.ast.ErrorCounter: expecting CLOSE, found '(' at antlr.Parser.match(Parser.java:211)