split number literals and string literals
This commit is contained in:
parent
afc6933f64
commit
63fe9778f7
4 changed files with 29 additions and 24 deletions
Language/SQL/SimpleSQL
|
@ -21,7 +21,8 @@ back into SQL source text. It attempts to format the output nicely.
|
|||
= scalar expressions
|
||||
|
||||
> scalarExpr :: ScalarExpr -> Doc
|
||||
> scalarExpr (Literal s) = quotes $ text s
|
||||
> scalarExpr (StringLiteral s) = quotes $ text s
|
||||
> scalarExpr (NumLiteral s) = text s
|
||||
> scalarExpr (Identifier i) = text i
|
||||
> scalarExpr (Identifier2 q i) = text q <> text "." <> text i
|
||||
> scalarExpr Star = text "*"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue