add lexing for \' only in e' strings and dollar strings in pg dialect
This commit is contained in:
parent
b41803427d
commit
5084c0c3ab
2 changed files with 36 additions and 24 deletions
tools/Language/SQL/SimpleSQL
|
@ -196,10 +196,12 @@ assurance.
|
|||
> ,("'normalendquote '''", [SqlString "'" "'" "normalendquote ''"])
|
||||
> ,("e'this '' quote'", [SqlString "e'" "'" "this '' quote"])
|
||||
> ,("e'this \\' quote'", [SqlString "e'" "'" "this \\' quote"])
|
||||
> -- todo: implement only allowing \' in e quoted strings
|
||||
> {-,("'not this \\' quote", [SqlString "'" "'" "not this \\"
|
||||
> ,Whitespace " "
|
||||
> ,Identifier Nothing "quote"])-}
|
||||
> ,("'not this \\' quote", [SqlString "'" "'" "not this \\"
|
||||
> ,Whitespace " "
|
||||
> ,Identifier Nothing "quote"])
|
||||
> ,("$$ string 1 $$", [SqlString "$$" "$$" " string 1 "])
|
||||
> ,("$$ string $ 2 $$", [SqlString "$$" "$$" " string $ 2 "])
|
||||
> ,("$a$ $$string 3$$ $a$", [SqlString "$a$" "$a$" " $$string 3$$ "])
|
||||
> ]
|
||||
> -- csstrings
|
||||
> ++ map (\c -> (c ++ "'test'", [SqlString (c ++ "'") "'" "test"]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue