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
|
||||||
: IDENTIFICATION_VARIABLE
|
: IDENTIFICATION_VARIABLE
|
||||||
| f=(COUNT
|
| f=(COUNT
|
||||||
|
| DATE
|
||||||
|
| FROM
|
||||||
| INNER
|
| INNER
|
||||||
| KEY
|
| KEY
|
||||||
| LEFT
|
| LEFT
|
||||||
|
|||||||
@@ -953,4 +953,9 @@ class JpqlQueryRendererTests {
|
|||||||
void alternateNotEqualsOperatorShouldWork() {
|
void alternateNotEqualsOperatorShouldWork() {
|
||||||
assertQuery("select e from Employee e where e.firstName != :name");
|
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