From: Billy G. A. <bal...@us...> - 2001-09-23 15:45:36
|
Update of /cvsroot/pypgsql/pypgsql In directory usw-pr-cvs1:/tmp/cvs-serv25513 Modified Files: pgconnection.c Log Message: 23SEP2001 bga Fixed problem when compiling with gcc. Index: pgconnection.c =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/pgconnection.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** pgconnection.c 2001/09/23 03:58:47 1.8 --- pgconnection.c 2001/09/23 15:45:33 1.9 *************** *** 29,32 **** --- 29,33 ---- | Date Ini Description | | --------- --- ------------------------------------------------------- | + | 23SEP2001 bga Fixed problem when compiling with gcc. | | 22SEP2001 bga Fixed bugs uncovered during testing with the new test | | cases for regression testing. | *************** *** 668,671 **** --- 669,673 ---- int size, idx, res; PyObject *result; + PGconn *cnx; if (!PgConnection_check((PyObject *)self)) *************** *** 679,683 **** } ! PGconn *cnx = PgConnection_Get(self); for (size = idx = 0, res = 1; res > 0; idx = (size - 1)) --- 681,685 ---- } ! cnx = PgConnection_Get(self); for (size = idx = 0, res = 1; res > 0; idx = (size - 1)) *************** *** 722,725 **** --- 724,728 ---- int size, idx, res, leave; PyObject *result = (PyObject *)NULL; + PGconn *cnx; if (!PgConnection_check((PyObject *)self)) *************** *** 733,737 **** } ! PGconn *cnx = PgConnection_Get(self); for (size = idx = leave = 0; leave; idx = size) --- 736,740 ---- } ! cnx = PgConnection_Get(self); for (size = idx = leave = 0; leave; idx = size) |