view tests/aborter2.ur @ 934:36f787c02287

Fix a bug in Jscomp environment calculation for EQuery; smarter embedding of record projection in JavaScript
author Adam Chlipala <adamc@hcoop.net>
date Mon, 14 Sep 2009 19:04:38 -0400
parents 7009b0ac1501
children
line wrap: on
line source
table t : { X : int }

fun main () : transaction page =
    v <- query (SELECT * FROM t)
         (fn r (_ : int) => return (error <xml>Shot down!</xml>))
         0;
    return <xml>Result: {[v]}</xml>