1
Fork 0

fix parsing of quoted keywords

This commit is contained in:
Jake Wheat 2019-08-31 09:13:09 +01:00
parent c5b8df7e2f
commit ce0eeb392a
4 changed files with 38 additions and 0 deletions
tools/Language/SQL/SimpleSQL

View file

@ -50,6 +50,7 @@ Tests for parsing scalar expressions
> [("iden1", Iden [Name Nothing "iden1"])
> --,("t.a", Iden2 "t" "a")
> ,("\"quoted identifier\"", Iden [Name (Just ("\"","\"")) "quoted identifier"])
> ,("\"period\"", Iden [Name (Just ("\"","\"")) "period"])
> ]
> star :: TestItem
@ -413,3 +414,4 @@ target_string
> ]
> where
> t fn = TestScalarExpr ansi2011 (fn ++ "(a)") $ App [Name Nothing fn] [Iden [Name Nothing "a"]]