Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 296cbb88bd81d8c3735e673286cb28d1e3ce929a
https://github.com/hibernate/hibernate-orm/commit/296cbb88bd81d8c3735e673...
Author: Gavin <gavin(a)hibernate.org>
Date: 2023-01-11 (Wed, 11 Jan 2023)
Changed paths:
M
hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java
Log Message:
-----------
fix queries like 'select ... where ...' with no 'from' clause
this was another bug that resulted from the unnecessary use of
the untypesafe getChild() method in SemanticQueryBuilder. It's
really important that we migrate away from that, who knows how
many other bugs are lurking?
Commit: 1606953a32426bc41a36371afdbc694a8fabb1a2
https://github.com/hibernate/hibernate-orm/commit/1606953a32426bc41a36371...
Author: Gavin <gavin(a)hibernate.org>
Date: 2023-01-11 (Wed, 11 Jan 2023)
Changed paths:
M
hibernate-core/src/main/java/org/hibernate/query/sqm/function/SelfRenderingFunctionSqlAstExpression.java
Log Message:
-----------
make SelfRenderingFunctionSqlAstExpression not blow up with NPE
this doesn't exactly *fix* cases with a nonsensible argument list,
but it at least gives us a chance to produce a more meaningful error
Compare:
https://github.com/hibernate/hibernate-orm/compare/c402431b9fc3...1606953...