Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,14 @@ limitOffset
*
* - The 'select' clause may come first, in which case 'from' is optional
* - The 'from' clause may come first, in which case 'select' is optional, and comes last
* - If both 'select' and 'from' are missing, a 'where' clause on its own is allowed
*
* Note that 'having' is only allowed with 'group by', but we don't enforce
* that in the grammar.
*/
query
// TODO: add with clause
: selectClause fromClause? whereClause? (groupByClause havingClause?)?
| fromClause whereClause? (groupByClause havingClause?)? selectClause?
: selectClause fromClause? whereClause? groupByClause? havingClause?
| fromClause whereClause? groupByClause? havingClause? selectClause?
| whereClause
;

Expand Down
Loading
Loading