1
Fork 0

work on array constructors and expressions

This commit is contained in:
Jake Wheat 2014-04-17 22:57:33 +03:00
parent 4cf84eba7b
commit 211174cfb4
4 changed files with 71 additions and 17 deletions
Language/SQL/SimpleSQL

View file

@ -134,6 +134,12 @@
> QueryExpr
> | Match ValueExpr Bool -- true if unique
> QueryExpr
> | Array ValueExpr [ValueExpr] -- ^ represents an array
> -- access expression, or an array ctor
> -- e.g. a[3]. The first
> -- valueExpr is the array, the
> -- second is the subscripts/ctor args
> | ArrayCtor QueryExpr -- ^ this is used for the query expression version of array constructors, e.g. array(select * from t)> deriving (Eq,Show,Read,Data,Typeable)
> deriving (Eq,Show,Read,Data,Typeable)
> -- | Represents an identifier name, which can be quoted or unquoted.
@ -154,7 +160,7 @@
> | InQueryExpr QueryExpr
> deriving (Eq,Show,Read,Data,Typeable)
not sure if scalar subquery and aexists and unique should be represented like this
not sure if scalar subquery, exists and unique should be represented like this
> -- | A subquery in a value expression.
> data SubQueryExprType