Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Port: Error during use NEW keyword for enum in loader query #88
Browse files Browse the repository at this point in the history
  • Loading branch information
plakhov committed Jul 6, 2021
1 parent 4d13459 commit 73283d4
Show file tree
Hide file tree
Showing 4 changed files with 6,938 additions and 6,764 deletions.
5 changes: 3 additions & 2 deletions data/src/main/java/io/jmix/data/impl/jpql/antlr2/JPA2.g
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,8 @@ constructor_name
: WORD ('.' WORD)*;

enum_literal
: WORD;
: WORD | 'SELECT' | 'FROM' | 'GROUP' | 'ORDER' | 'MAX' | 'MIN' | 'SUM' | 'AVG' | 'COUNT' | 'AS' | 'MEMBER' | 'CASE'
| 'OBJECT' | 'SET' | 'DESC' | 'ASC' | 'NEW';

boolean_literal
: 'true'
Expand Down Expand Up @@ -555,7 +556,7 @@ collection_valued_input_parameter
single_valued_input_parameter
: input_parameter;
enum_value_literal
: WORD ('.' WORD)*;
: enum_literal ('.' enum_literal)*;

// Lexical Rules
//fix trim character
Expand Down

0 comments on commit 73283d4

Please sign in to comment.