diff tests/query.ur @ 253:7f6620853c36

Monoized a WHERE clause with a comparison
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 Aug 2008 14:27:01 -0400
parents 326fb4686f60
children f8d9395575ec
line wrap: on
line diff
--- a/tests/query.ur	Sun Aug 31 13:58:47 2008 -0400
+++ b/tests/query.ur	Sun Aug 31 14:27:01 2008 -0400
@@ -1,10 +1,12 @@
-table t1 : {A : int, B : string, C : float}
+table t1 : {A : int, B : string, C : float, D : bool}
 table t2 : {A : float, D : int}
 
 datatype list a = Nil | Cons of a * list a
 
-val q1 = (SELECT * FROM t1)
-val r1 : transaction (list {A : int, B : string, C : float}) =
+(*val q1 = (SELECT * FROM t1)*)
+val q1 = (SELECT * FROM t1 WHERE t1.A = 0)
+
+val r1 : transaction (list {A : int, B : string, C : float, D : bool}) =
         query q1
         (fn fs acc => return (Cons (fs.T1, acc)))
         Nil