view tests/coalesce.ur @ 1779:7095e1b7240b

HTTP daemons now take '-a' option to set IP address to listen on
author Adam Chlipala <adam@chlipala.net>
date Sat, 23 Jun 2012 09:46:40 -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>)