summaryrefslogtreecommitdiff
path: root/tests/group_by.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-08-31 15:36:15 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-08-31 15:36:15 -0400
commit1d2a33433b530bdfe2c4cf7c7f0e6bc7190d87c5 (patch)
tree438e4fa54e6e8a7a8450cc051c374262c0d60250 /tests/group_by.ur
parentdcd7b7d304959739432b3e2497491c36f14f2b4f (diff)
Monoize HAVING
Diffstat (limited to 'tests/group_by.ur')
-rw-r--r--tests/group_by.ur4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/group_by.ur b/tests/group_by.ur
index 93655568..dbc7415b 100644
--- a/tests/group_by.ur
+++ b/tests/group_by.ur
@@ -5,7 +5,7 @@ val q1 = (SELECT * FROM t1 GROUP BY t1.B)
val q2 = (SELECT * FROM t1, t2 GROUP BY t1.B, t2.D, t1.A)
val q3 = (SELECT * FROM t1 WHERE t1.A = 0 GROUP BY t1.B)
-val q4 = (SELECT * FROM t1 WHERE t1.A = 0 GROUP BY t1.C HAVING t1.C < 0.2)
+val q4 = (SELECT * FROM t1 WHERE t1.A = 0 GROUP BY t1.B HAVING t1.B <> 'Bad')
val q5 = (SELECT t1.A, t2.D FROM t1, t2 GROUP BY t2.D, t1.A)
val q6 = (SELECT t1.A, t2.D FROM t1, t2 WHERE t1.C = 0.0 GROUP BY t2.D, t1.A HAVING t1.A = t1.A AND t2.D = 17)
@@ -14,7 +14,7 @@ val q6 = (SELECT t1.A, t2.D FROM t1, t2 WHERE t1.C = 0.0 GROUP BY t2.D, t1.A HAV
datatype list a = Nil | Cons of a * list a
val r1 : transaction (list {B : string}) =
- query q1
+ query q4
(fn fs acc => return (Cons (fs.T1, acc)))
Nil