Make POWER a valid token as an identifier for JPQL and HQL.

See #3143
This commit is contained in:
Greg L. Turnquist
2023-09-08 09:35:28 -05:00
parent cd5b4e7b4f
commit 407e9103ad
4 changed files with 12 additions and 0 deletions

View File

@@ -812,6 +812,7 @@ reservedWord
| PERCENT
| PLACING
| POSITION
| POWER
| PRECEDING
| QUARTER
| RANGE

View File

@@ -605,6 +605,7 @@ identification_variable
| NEW
| ORDER
| OUTER
| POWER
| FLOOR
| SIGN
| TIME

View File

@@ -1600,4 +1600,9 @@ class HqlQueryRendererTests {
ORDER BY j.id
""");
}
@Test // GH-3143
void powerShouldBeLegalInAQuery() {
assertQuery("select e.power.id from MyEntity e");
}
}

View File

@@ -983,4 +983,9 @@ class JpqlQueryRendererTests {
ORDER BY j.id
""");
}
@Test // GH-3143
void powerShouldBeLegalInAQuery() {
assertQuery("select e.power.id from MyEntity e");
}
}