add syntax for new grouping expressions
This commit is contained in:
parent
7d094182b7
commit
b703e04af3
9 changed files with 266 additions and 28 deletions
tools/Language/SQL/SimpleSQL
|
@ -30,7 +30,7 @@ Some tests for parsing full queries.
|
|||
> "+" (Iden "d")])]
|
||||
> ,qeFrom = [TRSimple "t", TRSimple "u"]
|
||||
> ,qeWhere = Just $ BinOp (Iden "a") ">" (NumLit "5")
|
||||
> ,qeGroupBy = [Iden "a"]
|
||||
> ,qeGroupBy = [SimpleGroup $ Iden "a"]
|
||||
> ,qeHaving = Just $ BinOp (App "count" [NumLit "1"])
|
||||
> ">" (NumLit "5")
|
||||
> ,qeOrderBy = [OrderField (Iden "s") Asc NullsOrderDefault]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue