diff options
Diffstat (limited to 'src/main/antlr/com/google/gwtorm/schema/Query.g')
-rw-r--r-- | src/main/antlr/com/google/gwtorm/schema/Query.g | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/main/antlr/com/google/gwtorm/schema/Query.g b/src/main/antlr/com/google/gwtorm/schema/Query.g index ce13198..b5e7a49 100644 --- a/src/main/antlr/com/google/gwtorm/schema/Query.g +++ b/src/main/antlr/com/google/gwtorm/schema/Query.g @@ -32,8 +32,6 @@ tokens { ID; PLACEHOLDER; COMMA; - ASC; - DESC; LIMIT; CONSTANT_INTEGER; CONSTANT_STRING; @@ -150,17 +148,7 @@ where ; orderBy - : ORDER^ BY! fieldSort (COMMA! fieldSort)* - ; - -fieldSort - : field sortDirection^ - | field -> ^(ASC field) - ; - -sortDirection - : ASC - | DESC + : ORDER^ BY! field (COMMA! field)* ; limit @@ -214,8 +202,6 @@ WHERE: 'WHERE' ; ORDER: 'ORDER' ; BY: 'BY' ; AND: 'AND' ; -ASC: 'ASC' ; -DESC: 'DESC' ; LIMIT: 'LIMIT' ; TRUE: 'true' ; FALSE: 'false' ; |