Skip to content

Commit 82dd94d

Browse files
committed
Make atx.sql compatible with python3
1 parent e6d197e commit 82dd94d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/regress/expected/atx.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ create or replace function pythonomous() returns void as $$
173173
try:
174174
with plpy.autonomous():
175175
plpy.execute("insert into atx_test values ('bsd', 456)")
176-
except plpy.SPIError, e:
176+
except (plpy.SPIError, e):
177177
print("error: %s" % e.args)
178178

179179
plpy.execute("insert into atx_test values ('csd', 'csd')")

src/test/regress/sql/atx.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ create or replace function pythonomous() returns void as $$
153153
try:
154154
with plpy.autonomous():
155155
plpy.execute("insert into atx_test values ('bsd', 456)")
156-
except plpy.SPIError, e:
156+
except (plpy.SPIError, e):
157157
print("error: %s" % e.args)
158158

159159
plpy.execute("insert into atx_test values ('csd', 'csd')")

0 commit comments

Comments
 (0)