From: Billy G. A. <bal...@us...> - 2003-06-27 03:01:22
|
Update of /cvsroot/pypgsql/pypgsql In directory sc8-pr-cvs1:/tmp/cvs-serv5725 Modified Files: pgconnection.c Log Message: 26JUN2003 bga Fixed a bug I introduced into lo_import. Index: pgconnection.c =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/pgconnection.c,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** pgconnection.c 17 Jun 2003 01:35:45 -0000 1.18 --- pgconnection.c 27 Jun 2003 03:01:20 -0000 1.19 *************** *** 29,32 **** --- 29,33 ---- | Date Ini Description | | --------- --- ------------------------------------------------------- | + | 26JUN2003 bga Fixed a bug I introduced into lo_import. | | 15JUN2003 bga Applied patch by Laurent Pinchart to correct a problem | | lo_import, lo_export, lo_unlink. | *************** *** 963,967 **** return (PyObject *)NULL; ! if ((oid = lo_import(PgConnection_Get(self), filename)) < 0) { PyErr_SetString(PqErr_OperationalError, "Can't import large object."); --- 964,968 ---- return (PyObject *)NULL; ! if ((oid = lo_import(PgConnection_Get(self), filename)) <= 0) { PyErr_SetString(PqErr_OperationalError, "Can't import large object."); |