Skip to content

Commit

Permalink
Handle SIGN function properly in HQL and JPQL queries.
Browse files Browse the repository at this point in the history
See #2994.
  • Loading branch information
gregturn committed Jun 2, 2023
1 parent 48cb338 commit 8cae8cd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,8 @@ identification_variable
| LEFT
| ORDER
| OUTER
| FLOOR)
| FLOOR
| SIGN)
;

constructor_name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1516,4 +1516,9 @@ void floorShouldBeValidEntityName() {
WHERE f.name = :name
""");
}

@Test // GH-2994
void queryWithSignShouldWork() {
assertQuery("select t.sign from TestEntity t");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -931,4 +931,9 @@ void floorShouldBeValidEntityName() {
WHERE f.name = :name
""");
}

@Test // GH-2994
void queryWithSignShouldWork() {
assertQuery("select t.sign from TestEntity t");
}
}

0 comments on commit 8cae8cd

Please sign in to comment.