From: Billy G. A. <bal...@us...> - 2001-09-24 16:54:43
|
Update of /cvsroot/pypgsql/pypgsql In directory usw-pr-cvs1:/tmp/cvs-serv8215 Modified Files: pglargeobject.c Log Message: 24SEP2001 bga Added _quote method to the PgLargeObject. Index: pglargeobject.c =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/pglargeobject.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** pglargeobject.c 2001/09/23 04:04:40 1.8 --- pglargeobject.c 2001/09/24 16:54:40 1.9 *************** *** 30,33 **** --- 30,34 ---- | Date Ini Description | | --------- --- ------------------------------------------------------- | + | 24SEP2001 bga Added a _quote() funtion. | | 22SEP2001 bga Ensure that INV_BIN is not in the mode variable when | | lo_open is called. | *************** *** 172,175 **** --- 173,181 ---- } + static PyObject *PgLo_quote(PgLargeObject *self) + { + return PgLargeObject_prnt(self); + } + typedef enum { PGRES_LO_OPENED = 1, *************** *** 1149,1152 **** --- 1155,1159 ---- { "writelines", (PyCFunction)PgLo_writelines, 1, PgLo_writelines_Doc}, { "export", (PyCFunction)PgLo_export, 1, PgLo_export_Doc}, + { "_quote", (PyCFunction)PgLo_quote, 1}, { NULL, NULL } }; |