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

Commit8f76324

Browse files
committed
Report Python errors from iterators with PLy_elog
This improves reporting, as the error string now includes the actualPython exception. As a side effect, this no longer sets the errcode toERRCODE_DATA_EXCEPTION, which might be considered a feature, as it'snot documented and not clear why iterator errors should be treateddifferently.Jan Urbański
1 parentcfcdc99 commit8f76324

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎src/pl/plpython/plpython.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,9 +1157,7 @@ PLy_function_handler(FunctionCallInfo fcinfo, PLyProcedure *proc)
11571157
PLy_function_delete_args(proc);
11581158

11591159
if (has_error)
1160-
ereport(ERROR,
1161-
(errcode(ERRCODE_DATA_EXCEPTION),
1162-
errmsg("error fetching next item from iterator")));
1160+
PLy_elog(ERROR,"error fetching next item from iterator");
11631161

11641162
/* Disconnect from the SPI manager before returning */
11651163
if (SPI_finish()!=SPI_OK_FINISH)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp