Skip to content

Commit

Permalink
FROM and DATE should be usable as parameters in JPQL queries.
Browse files Browse the repository at this point in the history
See #3092
  • Loading branch information
gregturn committed Aug 2, 2023
1 parent a096ce2 commit 34e2331
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,8 @@ trim_character
identification_variable
: IDENTIFICATION_VARIABLE
| f=(COUNT
| DATE
| FROM
| INNER
| KEY
| LEFT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -953,4 +953,9 @@ void typeShouldBeAValidParameter() {
void alternateNotEqualsOperatorShouldWork() {
assertQuery("select e from Employee e where e.firstName != :name");
}

@Test // GH-3092
void dateAndFromShouldBeValidNames() {
assertQuery("SELECT e FROM Entity e WHERE e.embeddedId.date BETWEEN :from AND :to");
}
}

0 comments on commit 34e2331

Please sign in to comment.