view tests/coalesce.ur @ 1874:11d8e220f36f

Add xhead type
author Sergey Mironov <grrwlf@gmail.com>
date Mon, 07 Oct 2013 14:07:31 +0400
parents e44be6ece475
children
line wrap: on
line source
table t : { A : option int }

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