Handle VALUE function properly in JPQL queries.

See #3028
This commit is contained in:
Greg L. Turnquist
2023-06-15 13:50:43 -05:00
parent cd1587ba1b
commit 7f9783c87e
3 changed files with 12 additions and 1 deletions

View File

@@ -603,7 +603,8 @@ identification_variable
| ORDER
| OUTER
| FLOOR
| SIGN)
| SIGN
| VALUE)
;
constructor_name

View File

@@ -1522,6 +1522,11 @@ class HqlQueryRendererTests {
assertQuery("select t.sign from TestEntity t");
}
@Test // GH-3028
void queryWithValueShouldWork() {
assertQuery("select t.value from TestEntity t");
}
@Test // GH-3024
void castFunctionWithFqdnShouldWork() {
assertQuery("SELECT o FROM Order o WHERE CAST(:userId AS java.util.UUID) IS NULL OR o.user.id = :userId");

View File

@@ -936,4 +936,9 @@ class JpqlQueryRendererTests {
void queryWithSignShouldWork() {
assertQuery("select t.sign from TestEntity t");
}
@Test // GH-3028
void queryWithValueShouldWork() {
assertQuery("select t.value from TestEntity t");
}
}