Handle SIGN function properly in HQL and JPQL queries.

See #2994.
This commit is contained in:
Greg L. Turnquist
2023-06-02 13:29:09 -05:00
parent 48cb33805b
commit 8cae8cdf24
4 changed files with 12 additions and 2 deletions

View File

@@ -1013,7 +1013,6 @@ SEARCH : S E A R C H;
SECOND : S E C O N D;
SELECT : S E L E C T;
SET : S E T;
SIGN : S I G N;
SIZE : S I Z E;
SOME : S O M E;
SUBSTRING : S U B S T R I N G;

View File

@@ -602,7 +602,8 @@ identification_variable
| LEFT
| ORDER
| OUTER
| FLOOR)
| FLOOR
| SIGN)
;
constructor_name

View File

@@ -1516,4 +1516,9 @@ class HqlQueryRendererTests {
WHERE f.name = :name
""");
}
@Test // GH-2994
void queryWithSignShouldWork() {
assertQuery("select t.sign from TestEntity t");
}
}

View File

@@ -931,4 +931,9 @@ class JpqlQueryRendererTests {
WHERE f.name = :name
""");
}
@Test // GH-2994
void queryWithSignShouldWork() {
assertQuery("select t.sign from TestEntity t");
}
}