Update expected files for older Python versions
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 4 May 2018 00:29:19 +0000 (20:29 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 4 May 2018 00:29:54 +0000 (20:29 -0400)
neglected in commit fa03769e4c4bf0911da71fba2501006b05ea195a

src/pl/plpython/expected/plpython_subtransaction_0.out
src/pl/plpython/expected/plpython_subtransaction_5.out

index e6cc38a0338d19e6705f02cd5f325bc009e39cd2..cc6d9c0e93d35a0b700a29f8a6d3b91a6fa7b03f 100644 (file)
@@ -128,7 +128,7 @@ with plpy.subtransaction():
     except plpy.SPIError, e:
         if not swallow:
             raise
-        plpy.notice("Swallowed %r" % e)
+        plpy.notice("Swallowed %s(%r)" % (e.__class__.__name__, e.args[0]))
 return "ok"
 $$ LANGUAGE plpythonu;
 ERROR:  could not compile PL/Python function "subtransaction_nested_test"
index 6fbafa31661a6e89bbc5164bedc0363c32cc6aab..c3be1302680ea9df79923bfe2fbe6fe8dee6fcb3 100644 (file)
@@ -128,7 +128,7 @@ with plpy.subtransaction():
     except plpy.SPIError, e:
         if not swallow:
             raise
-        plpy.notice("Swallowed %r" % e)
+        plpy.notice("Swallowed %s(%r)" % (e.__class__.__name__, e.args[0]))
 return "ok"
 $$ LANGUAGE plpythonu;
 ERROR:  could not compile PL/Python function "subtransaction_nested_test"