Skip to content

Commit

Permalink
Make POWER a valid token as an identifier for JPQL and HQL.
Browse files Browse the repository at this point in the history
See #3143
 Please enter the commit message for your changes. Lines starting
  • Loading branch information
gregturn committed Sep 8, 2023
1 parent f009e42 commit a67b2cd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,7 @@ reservedWord
| PERCENT
| PLACING
| POSITION
| POWER
| PRECEDING
| QUARTER
| RANGE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ identification_variable
| NEW
| ORDER
| OUTER
| POWER
| FLOOR
| SIGN
| TIME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1600,4 +1600,9 @@ void newShouldBeLegalAsPartOfAStateFieldPathExpression() {
ORDER BY j.id
""");
}

@Test // GH-3143
void powerShouldBeLegalInAQuery() {
assertQuery("select e.power.id from MyEntity e");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -983,4 +983,9 @@ void newShouldBeLegalAsPartOfAStateFieldPathExpression() {
ORDER BY j.id
""");
}

@Test // GH-3143
void powerShouldBeLegalInAQuery() {
assertQuery("select e.power.id from MyEntity e");
}
}

0 comments on commit a67b2cd

Please sign in to comment.