From eaed88ce120746b3004225252f52d8c79fea2f58 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 27 Oct 2016 12:00:00 -0400 Subject: 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. --- src/pl/plpython/plpy_cursorobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pl/plpython/plpy_cursorobject.c') diff --git a/src/pl/plpython/plpy_cursorobject.c b/src/pl/plpython/plpy_cursorobject.c index e682bfe566a..7bb89921484 100644 --- a/src/pl/plpython/plpy_cursorobject.c +++ b/src/pl/plpython/plpy_cursorobject.c @@ -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; -- cgit v1.2.3