summaryrefslogtreecommitdiff
path: root/tests/coalesce.ur
blob: 5ee8cf198ed91d615d1dbc558d991266f340f67a (plain)
1
2
3
4
5
6
table t : { A : option int }

fun main () : transaction page =
    queryX (SELECT COALESCE(t.A, 13)
            FROM t)
    (fn r => <xml>{[r.1]},</xml>)