diff tests/aborter.ur @ 424:b10132434adc

Transactions seem to be working
author Adam Chlipala <adamc@hcoop.net>
date Fri, 24 Oct 2008 16:47:18 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/aborter.ur	Fri Oct 24 16:47:18 2008 -0400
@@ -0,0 +1,5 @@
+table t : {A : int}
+
+fun main () : transaction page =
+    () <- dml (INSERT INTO t (A) VALUES (0));
+    return (error <xml>No way, Jose!</xml>)