We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent4fec63f commitddf8c16Copy full SHA for ddf8c16
src/pl/plpython/plpython.c
@@ -3465,7 +3465,7 @@ PLy_output(volatile int level, PyObject *self, PyObject *args)
3465
Py_XDECREF(so);
3466
3467
/* Make Python raise the exception */
3468
-PLy_exception_set(PLy_exc_error,edata->message);
+PLy_exception_set(PLy_exc_error,"%s",edata->message);
3469
returnNULL;
3470
}
3471
PG_END_TRY();
@@ -3620,13 +3620,13 @@ PLy_elog(int elevel, const char *fmt,...)
3620
ereport(elevel,
3621
(errmsg("PL/Python: %s",emsg.data),
3622
(xmsg) ?errdetail("%s",xmsg) :0,
3623
- (hint) ?errhint(hint) :0,
+ (hint) ?errhint("%s",hint) :0,
3624
(query) ?internalerrquery(query) :0,
3625
(position) ?internalerrposition(position) :0));
3626
else
3627
3628
(errmsg("PL/Python: %s",xmsg),
3629
3630
3631
3632