view tests/coalesce.ur @ 1696:177547450bb9

Some minor documentation to the Mono AST.
author Edward Z. Yang <ezyang@mit.edu>
date Mon, 12 Mar 2012 12:00:13 -0700
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>)