From 4a627a550cb54c18cb16cc0ad852e6a0bbc59c31 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 7 Sep 2008 12:58:33 -0400 Subject: Reading bools from SQL --- tests/pquery.ur | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/pquery.ur') diff --git a/tests/pquery.ur b/tests/pquery.ur index 1086aaee..ea53f7c9 100644 --- a/tests/pquery.ur +++ b/tests/pquery.ur @@ -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 A: {cdata (show _ s.A)}
B: {cdata (show _ s.B)}
C: {cdata (show _ s.C)}
+ D: {cdata (show _ s.D)}
fun main () : transaction page = return -- cgit v1.2.3