From: Billy G. A. <bal...@us...> - 2001-10-01 01:25:00
|
Update of /cvsroot/pypgsql/pypgsql In directory usw-pr-cvs1:/tmp/cvs-serv29940 Modified Files: pgconnection.c Log Message: 30SEP2001 bga Added some brakets to clarify ambiguous else clauses. Index: pgconnection.c =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/pgconnection.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** pgconnection.c 2001/09/30 06:34:04 1.11 --- pgconnection.c 2001/10/01 01:24:57 1.12 *************** *** 29,32 **** --- 29,33 ---- | Date Ini Description | | --------- --- ------------------------------------------------------- | + | 30SEP2001 bga Added some brakets to clarify ambiguous else clauses. | | 29SEP2001 bga Fixed numerous bugs found during the development of the | | regression test cases for pgconnection.c. | *************** *** 1045,1048 **** --- 1046,1050 ---- if (!strcmp(attr, "status")) + { if (cnx == (PGconn *)NULL) { *************** *** 1052,1055 **** --- 1054,1058 ---- else return Py_BuildValue("i", PQstatus(cnx)); + } if (!strcmp(attr, "errorMessage")) *************** *** 1075,1078 **** --- 1078,1082 ---- if (!strcmp(attr, "isBusy")) + { if (cnx == (PGconn *)NULL) { *************** *** 1082,1087 **** --- 1086,1093 ---- else return Py_BuildValue("i", PQisBusy(cnx)); + } if (!strcmp(attr, "isnonblocking")) + { if (cnx == (PGconn *)NULL) { *************** *** 1091,1094 **** --- 1097,1101 ---- else return Py_BuildValue("i", PQisnonblocking(cnx)); + } if (!strcmp(attr, "__module__")) |