diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-10-24 17:30:07 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-10-24 17:30:07 -0400 |
commit | 6e9d4b27c527465c6df34d35e4d85dc3162db7c9 (patch) | |
tree | aa4fda4e4f7a4a5d0f7920c3e3653d17667dfee3 /tests/aborter2.ur | |
parent | 4f82b8197a0e0b520882c0173f321bd948fc7b50 (diff) |
Properly freeing libpq results on errors
Diffstat (limited to 'tests/aborter2.ur')
-rw-r--r-- | tests/aborter2.ur | 7 |
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> |