Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit76ba8a8

Browse files
committed
Doc: Python's control flow construct is try/except not try/catch.
Very ancient thinko, dating evidently to2269071.Spotted by gweatherby.Discussion:https://postgr.es/m/170423637139.1288848.11840082988774620003@wrigleys.postgresql.org
1 parentdffde5b commit76ba8a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎doc/src/sgml/plpython.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ plan = plpy.prepare("INSERT INTO operations (result) VALUES ($1)", ["text"])
11751175
plpy.execute(plan, [result])
11761176
$$ LANGUAGE plpython3u;
11771177
</programlisting>
1178-
Note that the use of <literal>try/catch</literal> is still
1178+
Note that the use of <literal>try</literal>/<literal>except</literal> is still
11791179
required. Otherwise the exception would propagate to the top of
11801180
the Python stack and would cause the whole function to abort with
11811181
a <productname>PostgreSQL</productname> error, so that the

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp