mirror of
https://github.com/postgres/postgres.git
synced 2025-08-18 12:22:09 +03:00
Add function name to PyArg_ParseTuple()
This causes the supplied function name to appear in any error message, making the error message friendlier and relieving us from having to provide our own in some cases.
This commit is contained in:
@@ -406,7 +406,7 @@ PLy_cursor_fetch(PyObject *self, PyObject *args)
|
||||
volatile ResourceOwner oldowner;
|
||||
Portal portal;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "i", &count))
|
||||
if (!PyArg_ParseTuple(args, "i:fetch", &count))
|
||||
return NULL;
|
||||
|
||||
cursor = (PLyCursorObject *) self;
|
||||
|
Reference in New Issue
Block a user