comparison 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
comparison
equal deleted inserted replaced
1572:5530a8075b62 1573:34364e383bed
1 table t : { A : int, B : int }
2
3 fun main () =
4 x <- queryX (SELECT * FROM t WHERE IF t.A = 6 THEN t.B < 2 ELSE t.B > 5)
5 (fn r => <xml><li>{[r.T.A]}, {[r.T.B]}</li></xml>);
6 return <xml><body>{x}</body></xml>