the first result in the DB-API compliant wrapper. It turned out that the bug
was way down in the C code.
Gerhard Häring
for (j = 0; j < self->num_fields; j++)
{
- if (PQgetisnull(self->last_result, i, j))
+ if (PQgetisnull(self->last_result, self->current_row, j))
{
Py_INCREF(Py_None);
str = Py_None;
}
else
- str = PyString_FromString(PQgetvalue(self->last_result, i, j));
+ str = PyString_FromString(PQgetvalue(self->last_result, self->current_row, j));
PyTuple_SET_ITEM(rowtuple, j, str);
}