File tree 3 files changed +11
-0
lines changed
main/antlr4/org/springframework/data/jpa/repository/query
test/java/org/springframework/data/jpa/repository/query
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -604,6 +604,7 @@ identification_variable
604
604
| OUTER
605
605
| FLOOR
606
606
| SIGN
607
+ | TYPE
607
608
| VALUE )
608
609
;
609
610
Original file line number Diff line number Diff line change @@ -1549,4 +1549,9 @@ void binaryLiteralsShouldWork() {
1549
1549
void escapeClauseShouldWork () {
1550
1550
assertQuery ("select t.name from SomeDbo t where t.name LIKE :name escape '\\ \\ '" );
1551
1551
}
1552
+
1553
+ @ Test // GH-3062
1554
+ void typeShouldBeAValidParameter () {
1555
+ assertQuery ("select e from Employee e where e.type = :_type" );
1556
+ }
1552
1557
}
Original file line number Diff line number Diff line change @@ -941,4 +941,9 @@ void queryWithSignShouldWork() {
941
941
void queryWithValueShouldWork () {
942
942
assertQuery ("select t.value from TestEntity t" );
943
943
}
944
+
945
+ @ Test // GH-3062
946
+ void typeShouldBeAValidParameter () {
947
+ assertQuery ("select e from Employee e where e.type = :_type" );
948
+ }
944
949
}
You can’t perform that action at this time.
0 commit comments