add support for multiple case when expressions
This commit is contained in:
parent
ebe522b21d
commit
7d094182b7
6 changed files with 28 additions and 31 deletions
Language/SQL/SimpleSQL
|
@ -99,7 +99,7 @@
|
|||
> -- a=4,b=5 then x end)
|
||||
> | Case
|
||||
> {caseTest :: Maybe ScalarExpr -- ^ test value
|
||||
> ,caseWhens :: [(ScalarExpr,ScalarExpr)] -- ^ when branches
|
||||
> ,caseWhens :: [([ScalarExpr],ScalarExpr)] -- ^ when branches
|
||||
> ,caseElse :: Maybe ScalarExpr -- ^ else value
|
||||
> }
|
||||
> | Parens ScalarExpr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue