add support for '' in string literals
This commit is contained in:
parent
72b67166d9
commit
8adc169b38
5 changed files with 18 additions and 3 deletions
tools/Language/SQL/SimpleSQL
|
@ -34,6 +34,7 @@ Tests for parsing scalar expressions
|
|||
> ,("3e+3", NumLit "3e+3")
|
||||
> ,("3e-3", NumLit "3e-3")
|
||||
> ,("'string'", StringLit "string")
|
||||
> ,("'string with a '' quote'", StringLit "string with a ' quote")
|
||||
> ,("'1'", StringLit "1")
|
||||
> ,("interval '3' day", IntervalLit "3" "day" Nothing)
|
||||
> ,("interval '3' day (3)", IntervalLit "3" "day" $ Just 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue