diff tests/pquery.ur @ 296:5dc11235129d

Reading bools from SQL
author Adam Chlipala <adamc@hcoop.net>
date Sun, 07 Sep 2008 12:58:33 -0400
parents 1afa94582275
children 59dc042629b9
line wrap: on
line diff
--- a/tests/pquery.ur	Sun Sep 07 12:56:46 2008 -0400
+++ b/tests/pquery.ur	Sun Sep 07 12:58:33 2008 -0400
@@ -1,13 +1,14 @@
-table t1 : {A : int, B : string, C : float}
+table t1 : {A : int, B : string, C : float, D : bool}
 
 fun lookup (inp : {B : string}) =
         s <- query (SELECT * FROM t1 WHERE t1.B = {inp.B})
                 (fn fs _ => return fs.T1)
-                {A = 0, B = "Couldn't find it!", C = 0.0};
+                {A = 0, B = "Couldn't find it!", C = 0.0, D = False};
         return <html><body>
                 A: {cdata (show _ s.A)}<br/>
                 B: {cdata (show _ s.B)}<br/>
                 C: {cdata (show _ s.C)}<br/>
+                D: {cdata (show _ s.D)}<br/>
         </body></html>
 
 fun main () : transaction page = return <html><body>