summaryrefslogtreecommitdiff
path: root/src/pl/plpython/plpy_cursorobject.c
diff options
context:
space:
mode:
authorPeter Eisentraut2016-10-27 16:00:00 +0000
committerPeter Eisentraut2016-10-27 19:41:29 +0000
commiteaed88ce120746b3004225252f52d8c79fea2f58 (patch)
tree2641cd6cc2ab19ff68e6f538a3ca764ea09b43de /src/pl/plpython/plpy_cursorobject.c
parent84d457edaf4b3a1e10fd9e100e8ca18c042ad30c (diff)
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.
Diffstat (limited to 'src/pl/plpython/plpy_cursorobject.c')
-rw-r--r--src/pl/plpython/plpy_cursorobject.c2
1 files changed, 1 insertions, 1 deletions
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;