aboutsummaryrefslogtreecommitdiff
path: root/src/pl/plpython/expected/plpython_subtransaction_0.out
diff options
context:
space:
mode:
Diffstat (limited to 'src/pl/plpython/expected/plpython_subtransaction_0.out')
-rw-r--r--src/pl/plpython/expected/plpython_subtransaction_0.out8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pl/plpython/expected/plpython_subtransaction_0.out b/src/pl/plpython/expected/plpython_subtransaction_0.out
index 6f4be556d54..73bd7242bd8 100644
--- a/src/pl/plpython/expected/plpython_subtransaction_0.out
+++ b/src/pl/plpython/expected/plpython_subtransaction_0.out
@@ -19,7 +19,7 @@ try:
if what_error == "SPI":
plpy.execute("INSERT INTO subtransaction_tbl VALUES ('oops')")
elif what_error == "Python":
- plpy.attribute_error
+ raise Exception("Python exception")
except:
exc = False
subxact.__exit__(*sys.exc_info())
@@ -58,10 +58,10 @@ SELECT * FROM subtransaction_tbl;
TRUNCATE subtransaction_tbl;
SELECT subtransaction_test('Python');
-ERROR: AttributeError: 'module' object has no attribute 'attribute_error'
+ERROR: Exception: Python exception
CONTEXT: Traceback (most recent call last):
PL/Python function "subtransaction_test", line 13, in <module>
- plpy.attribute_error
+ raise Exception("Python exception")
PL/Python function "subtransaction_test"
SELECT * FROM subtransaction_tbl;
i
@@ -78,7 +78,7 @@ with plpy.subtransaction():
if what_error == "SPI":
plpy.execute("INSERT INTO subtransaction_tbl VALUES ('oops')")
elif what_error == "Python":
- plpy.attribute_error
+ raise Exception("Python exception")
$$ LANGUAGE plpythonu;
ERROR: could not compile PL/Python function "subtransaction_ctx_test"
DETAIL: SyntaxError: invalid syntax (line 3)