annotate tests/tryDml.ur @ 1293:acabf3935060

tryDml
author Adam Chlipala <adam@chlipala.net>
date Sun, 05 Sep 2010 14:00:57 -0400
parents
children 929981850d9d
rev   line source
adam@1293 1 table t : {Id : int}
adam@1293 2 PRIMARY KEY Id
adam@1293 3
adam@1293 4 fun doStuff () =
adam@1293 5 dml (INSERT INTO t (Id) VALUES (0));
adam@1293 6 o1 <- tryDml (INSERT INTO t (Id) VALUES (0));
adam@1293 7 dml (INSERT INTO t (Id) VALUES (1));
adam@1293 8 o2 <- tryDml (INSERT INTO t (Id) VALUES (1));
adam@1293 9 return <xml>{[o1]}; {[o2]}</xml>
adam@1293 10
adam@1293 11 fun main () = return <xml><body>
adam@1293 12 <form> <submit action={doStuff}/> </form>
adam@1293 13 </body></xml>