2013-12-17 10:48:40 +01:00
|
|
|
|
|
|
|
These are the tests for the queryExprs parsing which parses multiple
|
|
|
|
query expressions from one string.
|
|
|
|
|
|
|
|
> module Language.SQL.SimpleSQL.QueryExprs (queryExprsTests) where
|
|
|
|
|
|
|
|
> import Language.SQL.SimpleSQL.TestTypes
|
|
|
|
> import Language.SQL.SimpleSQL.Syntax
|
|
|
|
|
|
|
|
> queryExprsTests :: TestItem
|
2015-08-01 19:26:00 +02:00
|
|
|
> queryExprsTests = Group "query exprs" $ map (uncurry (TestStatements SQL2011))
|
2013-12-17 10:48:40 +01:00
|
|
|
> [("select 1",[ms])
|
|
|
|
> ,("select 1;",[ms])
|
|
|
|
> ,("select 1;select 1",[ms,ms])
|
|
|
|
> ,(" select 1;select 1; ",[ms,ms])
|
|
|
|
> ]
|
|
|
|
> where
|
2015-08-01 19:26:00 +02:00
|
|
|
> ms = SelectStatement $ makeSelect {qeSelectList = [(NumLit "1",Nothing)]}
|