view tests/aborter2.ur @ 1942:a671e5258a2c

Raise exception when recv()ing from someone else's channel; improve setting of client ID in RPCs
author Adam Chlipala <adam@chlipala.net>
date Fri, 27 Dec 2013 12:10:03 -0500
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>