diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/group_by.ur | 4 |
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 |