diff -r -C 3 pgsql.orig/src/interfaces/python/pgmodule.c pgsql/src/interfaces/python/pgmodule.c *** pgsql.orig/src/interfaces/python/pgmodule.c Thu Jul 12 00:00:57 2001 --- pgsql/src/interfaces/python/pgmodule.c Mon Aug 13 18:54:52 2001 *************** *** 548,560 **** for (j = 0; j < self->num_fields; j++) { ! if (PQgetisnull(self->last_result, i, j)) { Py_INCREF(Py_None); str = Py_None; } else ! str = PyString_FromString(PQgetvalue(self->last_result, i, j)); PyTuple_SET_ITEM(rowtuple, j, str); } --- 548,560 ---- for (j = 0; j < self->num_fields; 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, self->current_row, j)); PyTuple_SET_ITEM(rowtuple, j, str); }