summaryrefslogtreecommitdiff
path: root/tests/sql_if.ur
blob: 4413e762f2f73f48d6b526fdb514f32c48eb83a9 (plain)
1
2
3
4
5
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>