1
Fork 0

rename CombineQueryExpr to QueryExprSetOp and CombineOp to SetOperatorName

This commit is contained in:
Jake Wheat 2016-02-22 23:24:43 +02:00
parent a2645ace3f
commit d52b5efc8b
4 changed files with 13 additions and 13 deletions
tools/Language/SQL/SimpleSQL

View file

@ -144,24 +144,24 @@ These are a few misc tests which don't fit anywhere else.
> combos :: TestItem
> combos = Group "combos" $ map (uncurry (TestQueryExpr ansi2011))
> [("select a from t union select b from u"
> ,CombineQueryExpr ms1 Union SQDefault Respectively ms2)
> ,QueryExprSetOp ms1 Union SQDefault Respectively ms2)
> ,("select a from t intersect select b from u"
> ,CombineQueryExpr ms1 Intersect SQDefault Respectively ms2)
> ,QueryExprSetOp ms1 Intersect SQDefault Respectively ms2)
> ,("select a from t except all select b from u"
> ,CombineQueryExpr ms1 Except All Respectively ms2)
> ,QueryExprSetOp ms1 Except All Respectively ms2)
> ,("select a from t union distinct corresponding \
> \select b from u"
> ,CombineQueryExpr ms1 Union Distinct Corresponding ms2)
> ,QueryExprSetOp ms1 Union Distinct Corresponding ms2)
> ,("select a from t union select a from t union select a from t"
> -- TODO: union should be left associative. I think the others also
> -- so this needs to be fixed (new optionSuffix variation which
> -- handles this)
> ,CombineQueryExpr ms1 Union SQDefault Respectively
> (CombineQueryExpr ms1 Union SQDefault Respectively ms1))
> ,QueryExprSetOp ms1 Union SQDefault Respectively
> (QueryExprSetOp ms1 Union SQDefault Respectively ms1))
> ]
> where
> ms1 = makeSelect