add support for ? for parameterized queries
This commit is contained in:
parent
72d7b9428f
commit
b68c116839
5 changed files with 18 additions and 0 deletions
tools/Language/SQL/SimpleSQL
|
@ -12,6 +12,7 @@ Tests for parsing scalar expressions
|
|||
> [literals
|
||||
> ,identifiers
|
||||
> ,star
|
||||
> ,parameter
|
||||
> ,dots
|
||||
> ,app
|
||||
> ,caseexp
|
||||
|
@ -56,6 +57,12 @@ Tests for parsing scalar expressions
|
|||
> --,("ROW(t.*,42)", App "ROW" [Star2 "t", NumLit "42"])
|
||||
> ]
|
||||
|
||||
> parameter :: TestItem
|
||||
> parameter = Group "parameter" $ map (uncurry TestScalarExpr)
|
||||
> [("?", Parameter)
|
||||
> ]
|
||||
|
||||
|
||||
> dots :: TestItem
|
||||
> dots = Group "dot" $ map (uncurry TestScalarExpr)
|
||||
> [("t.a", BinOp (Iden "t") "." (Iden "a"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue