projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa2e323
)
Doc: Python's control flow construct is try/except not try/catch.
author
Tom Lane
Wed, 3 Jan 2024 17:22:00 +0000
(12:22 -0500)
committer
Tom Lane
Wed, 3 Jan 2024 17:22:00 +0000
(12:22 -0500)
Very ancient thinko, dating evidently to
22690719e
.
Spotted by gweatherby.
Discussion: https://postgr.es/m/
170423637139
.
1288848
.
11840082988774620003
@wrigleys.postgresql.org
doc/src/sgml/plpython.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/plpython.sgml
b/doc/src/sgml/plpython.sgml
index 06ab7dd0708435b379b8793503591c1856f650e8..dbb83072aa3da2fcd3142bf806483c1d7addec6a 100644
(file)
--- a/
doc/src/sgml/plpython.sgml
+++ b/
doc/src/sgml/plpython.sgml
@@
-1323,7
+1323,7
@@
plan = plpy.prepare("INSERT INTO operations (result) VALUES ($1)", ["text"])
plpy.execute(plan, [result])
$$ LANGUAGE plpythonu;
- Note that the use of
try
/catch
is still
+ Note that the use of
try
/
except
is still
required. Otherwise the exception would propagate to the top of
the Python stack and would cause the whole function to abort with
a
PostgreSQL
error, so that the