summaryrefslogtreecommitdiff
path: root/tests/sql_ops.ur
blob: 34e787756abea7fe0dfad2a48e2e7b43d83c7946 (plain)
1
2
3
4
5
6
7
8
table t : { A : int, B : float }

val q = (SELECT t.A + t.A AS X, t.B * t.B AS Y FROM t)

fun main () : transaction page =
    xml <- queryX q (fn r => <xml>{[r.X]}, {[r.Y]}<br/></xml>);
    return <xml><body>{xml}</body></xml>