move #iden to sql server dialect
This commit is contained in:
parent
83b16edb1f
commit
92c537fce2
|
@ -215,7 +215,7 @@ use try because : and @ can be part of other things also
|
|||
> [PrefixedVariable <$> char ':' <*> identifierString
|
||||
> ,guard (diSyntaxFlavour d == SQLServer) >>
|
||||
> PrefixedVariable <$> char '@' <*> identifierString
|
||||
> ,guard (diSyntaxFlavour d == Oracle) >>
|
||||
> ,guard (diSyntaxFlavour d == SQLServer) >>
|
||||
> PrefixedVariable <$> char '#' <*> identifierString
|
||||
> ]
|
||||
|
||||
|
|
|
@ -293,15 +293,13 @@ the + or -.
|
|||
> sqlServerLexerTests = Group "sqlServerLexTests" $
|
||||
> [ LexTest sqlserver s t | (s,t) <-
|
||||
> [("@variable", [(PrefixedVariable '@' "variable")])
|
||||
> ,("#variable", [(PrefixedVariable '#' "variable")])
|
||||
> ,("[quoted identifier]", [(Identifier (Just ("[", "]")) "quoted identifier")])
|
||||
> ]]
|
||||
|
||||
> oracleLexerTests :: TestItem
|
||||
> oracleLexerTests = Group "oracleLexTests" $
|
||||
> [ LexTest oracle s t | (s,t) <-
|
||||
> [("#variable", [(PrefixedVariable '#' "variable")])
|
||||
> ]
|
||||
> ]
|
||||
> [] -- nothing oracle specific atm
|
||||
|
||||
> mySqlLexerTests :: TestItem
|
||||
> mySqlLexerTests = Group "mySqlLexerTests" $
|
||||
|
|
Loading…
Reference in a new issue