summaryrefslogtreecommitdiff
path: root/tests/aborter2.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-10-24 17:30:07 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-10-24 17:30:07 -0400
commitc6ed3035896b5cca544ef9bf245cd76019783b1f (patch)
treeaa4fda4e4f7a4a5d0f7920c3e3653d17667dfee3 /tests/aborter2.ur
parent6dbd6e0786f8ab1b5b35883dca6695cf58272b5b (diff)
Properly freeing libpq results on errors
Diffstat (limited to 'tests/aborter2.ur')
-rw-r--r--tests/aborter2.ur7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/aborter2.ur b/tests/aborter2.ur
new file mode 100644
index 00000000..a7270ba1
--- /dev/null
+++ b/tests/aborter2.ur
@@ -0,0 +1,7 @@
+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>