We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e59edd commit f7eedfdCopy full SHA for f7eedfd
src/interfaces/python/pgmodule.c
@@ -548,13 +548,13 @@ pgsource_fetch(pgsourceobject * self, PyObject * args)
548
549
for (j = 0; j < self->num_fields; j++)
550
{
551
- if (PQgetisnull(self->last_result, i, j))
+ if (PQgetisnull(self->last_result, self->current_row, j))
552
553
Py_INCREF(Py_None);
554
str = Py_None;
555
}
556
else
557
- str = PyString_FromString(PQgetvalue(self->last_result, i, j));
+ str = PyString_FromString(PQgetvalue(self->last_result, self->current_row, j));
558
559
PyTuple_SET_ITEM(rowtuple, j, str);
560
0 commit comments