volatile ResourceOwner oldowner;
Portal portal;
- if (!PyArg_ParseTuple(args, "i", &count))
+ if (!PyArg_ParseTuple(args, "i:fetch", &count))
return NULL;
cursor = (PLyCursorObject *) self;
static PyObject *
PLy_plan_status(PyObject *self, PyObject *args)
{
- if (PyArg_ParseTuple(args, ""))
+ if (PyArg_ParseTuple(args, ":status"))
{
Py_INCREF(Py_True);
return Py_True;
/* return PyInt_FromLong(self->status); */
}
- PLy_exception_set(PLy_exc_error, "plan.status takes no arguments");
return NULL;
}
char *quoted;
PyObject *ret;
- if (!PyArg_ParseTuple(args, "s", &str))
+ if (!PyArg_ParseTuple(args, "s:quote_literal", &str))
return NULL;
quoted = quote_literal_cstr(str);
char *quoted;
PyObject *ret;
- if (!PyArg_ParseTuple(args, "z", &str))
+ if (!PyArg_ParseTuple(args, "z:quote_nullable", &str))
return NULL;
if (str == NULL)
const char *quoted;
PyObject *ret;
- if (!PyArg_ParseTuple(args, "s", &str))
+ if (!PyArg_ParseTuple(args, "s:quote_ident", &str))
return NULL;
quoted = quote_identifier(str);
volatile ResourceOwner oldowner;
volatile int nargs;
- if (!PyArg_ParseTuple(args, "s|O", &query, &list))
+ if (!PyArg_ParseTuple(args, "s|O:prepare", &query, &list))
return NULL;
if (list && (!PySequence_Check(list)))