1
Fork 0

add support for @var and #var in sqlserver and oracle dialects respectively

This commit is contained in:
Jake Wheat 2016-02-15 20:32:26 +02:00
parent 9fd2970f26
commit b22cde4100
3 changed files with 35 additions and 10 deletions
tools/Language/SQL/SimpleSQL

View file

@ -282,14 +282,14 @@ the + or -.
> sqlServerLexerTests :: TestItem
> sqlServerLexerTests = Group "sqlServerLexTests" $
> [ LexTest sqlserver s t | (s,t) <-
> [--("@variable", [(Identifier (Just ("@", "")) "variable")])
> [("@variable", [(PrefixedVariable '@' "variable")])
> --,("[quoted identifier]", [(Identifier (Just ("[", "]")) "variable")])
> ]]
> oracleLexerTests :: TestItem
> oracleLexerTests = Group "oracleLexTests" $
> [ LexTest oracle s t | (s,t) <-
> [--("#variable", [(Identifier (Just ("#", "")) "variable")])
> [("#variable", [(PrefixedVariable '#' "variable")])
> ]
> ]