diff tests/sql_if.ur @ 1573:34364e383bed

For new IF, fix Monoize typing and add to manual
author Adam Chlipala <adam@chlipala.net>
date Sat, 15 Oct 2011 09:04:41 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/sql_if.ur	Sat Oct 15 09:04:41 2011 -0400
@@ -0,0 +1,6 @@
+table t : { A : int, B : int }
+
+fun main () =
+    x <- queryX (SELECT * FROM t WHERE IF t.A = 6 THEN t.B < 2 ELSE t.B > 5)
+                (fn r => <xml><li>{[r.T.A]}, {[r.T.B]}</li></xml>);
+    return <xml><body>{x}</body></xml>