FROM and DATE should be usable as parameters in JPQL queries.
See #3092
This commit is contained in:
@@ -597,6 +597,8 @@ trim_character
|
||||
identification_variable
|
||||
: IDENTIFICATION_VARIABLE
|
||||
| f=(COUNT
|
||||
| DATE
|
||||
| FROM
|
||||
| INNER
|
||||
| KEY
|
||||
| LEFT
|
||||
|
||||
@@ -953,4 +953,9 @@ class JpqlQueryRendererTests {
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user