view tests/coalesce.ur @ 2262:34ad83d9b729

Fix recording bugs to do with nesting and buffer reallocation. Stop MonoFooify printing spurious errors.
author Ziv Scully <ziv@mit.edu>
date Wed, 07 Oct 2015 08:58:08 -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>)