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

Commit719461b

Browse files
committed
Improve message for errors in compiling anonymous PL/Python blocks
The previous code would try to print out a null pointer.Jan Urbański
1 parentd9a95c0 commit719461b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/pl/plpython/plpython.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1625,7 +1625,11 @@ PLy_procedure_compile(PLyProcedure *proc, const char *src)
16251625
return;
16261626
}
16271627

1628-
PLy_elog(ERROR,"could not compile PL/Python function \"%s\"",proc->proname);
1628+
if (proc->proname)
1629+
PLy_elog(ERROR,"could not compile PL/Python function \"%s\"",
1630+
proc->proname);
1631+
else
1632+
PLy_elog(ERROR,"could not compile anonymous PL/Python code block");
16291633
}
16301634

16311635
staticchar*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp