From: Billy G. A. <bal...@us...> - 2001-10-01 01:42:44
|
Update of /cvsroot/pypgsql/pypgsql In directory usw-pr-cvs1:/tmp/cvs-serv1346 Modified Files: Announce ChangeLog MANIFEST README Log Message: 30SEP2001 bga Updated files for pyPgSQL Version 1.6 release. Index: Announce =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/Announce,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** Announce 2001/09/30 07:09:09 1.12 --- Announce 2001/10/01 01:42:41 1.13 *************** *** 59,65 **** values to be stored in the database without the use of Large Objects. ! * Changed how strings are escaped/quoted for use as parameter in queries. ! Modified code so that array elements are quoted differently from regular ! attributes. The repr() function is no longer used. * Changed code so that libpq notices are only converted to Warning exceptions --- 59,65 ---- values to be stored in the database without the use of Large Objects. ! * [Bug #455514, #464213] Changed how strings are escaped/quoted for use as ! parameter in queries. Modified code so that array elements are quoted ! differently from regular attributes. The repr function is no longer used. * Changed code so that libpq notices are only converted to Warning exceptions *************** *** 90,97 **** Changes to libpqmodule.c ------------------------ ! * Added a new function to escape/quote strings. These function will escape/ ! quote values used as array elements differently from regular fields. ! * Added new functions to escape/un-escape strings used as input/output to/from bytea fields. These function will escape/quote values used as array elements differently from regular fields. --- 90,98 ---- Changes to libpqmodule.c ------------------------ ! * [Bug #455514, #464213] Added a new function to escape/quote strings. This ! function will escape/quote values used as array elements differently from ! regular fields. ! * Added a new functions to escape/un-escape strings used as input/output to/from bytea fields. These function will escape/quote values used as array elements differently from regular fields. Index: ChangeLog =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/ChangeLog,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** ChangeLog 2001/09/30 07:09:09 1.12 --- ChangeLog 2001/10/01 01:42:41 1.13 *************** *** 4,9 **** =================================== ! The following regression test cases have been added. These tests are ! designed to rigorously test a specific part of pyPgSQL: pgresult.py - Test cases for the libpq.PgResult object. --- 4,9 ---- =================================== ! The following regression test cases have been added. Each regression test ! is designed to rigorously test a specific part of pyPgSQL: pgresult.py - Test cases for the libpq.PgResult object. *************** *** 16,22 **** values to be stored in the database without the use of Large Objects. ! * Changed how strings are escaped/quoted for use as parameter in queries. ! Modified code so that array elements are quoted differently from regular ! attributes. The repr() function is no longer used. * Changed code so that libpq notices are only converted to Warning exceptions --- 16,22 ---- values to be stored in the database without the use of Large Objects. ! * [Bug #455514, #464213] Changed how strings are escaped/quoted for use as ! parameter in queries. Modified code so that array elements are quoted ! differently from regular attributes. The repr function is no longer used. * Changed code so that libpq notices are only converted to Warning exceptions *************** *** 47,54 **** Changes to libpqmodule.c ------------------------ ! * Added a new function to escape/quote strings. These function will escape/ ! quote values used as array elements differently from regular fields. ! * Added new functions to escape/un-escape strings used as input/output to/from bytea fields. These function will escape/quote values used as array elements differently from regular fields. --- 47,55 ---- Changes to libpqmodule.c ------------------------ ! * [Bug #455514, #464213] Added a new function to escape/quote strings. This ! function will escape/quote values used as array elements differently from ! regular fields. ! * Added a new functions to escape/un-escape strings used as input/output to/from bytea fields. These function will escape/quote values used as array elements differently from regular fields. *************** *** 70,74 **** not used to escape/quote strings. ! * Corrected some bugs found while developing a set of regression tests for pgconnection.c. --- 71,78 ---- not used to escape/quote strings. ! * Changed code so that a PgConnection object's members are set to None if ! the finish() method is called. ! ! * Corrected bugs found while developing a set of regression tests for pgconnection.c. Index: MANIFEST =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/MANIFEST,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** MANIFEST 2001/09/20 03:52:32 1.6 --- MANIFEST 2001/10/01 01:42:41 1.7 *************** *** 30,33 **** --- 30,34 ---- examples/demo2b.py test/PgSQLTestCases.py + test/regression/pgconnection.py test/regression/pgresult.py test/regression/pgversion.py Index: README =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/README,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** README 2001/09/30 07:09:09 1.13 --- README 2001/10/01 01:42:41 1.14 *************** *** 1,4 **** #ident "@(#) $Id$" ! pyPgSQL - v1.1: Python DB-API 2.0 Compliant Interface Module for PostgreSQL. =========================================================================== --- 1,4 ---- #ident "@(#) $Id$" ! pyPgSQL - v1.6: Python DB-API 2.0 Compliant Interface Module for PostgreSQL. =========================================================================== *************** *** 55,59 **** PgSQL, provides the DB-API 2.0 compliant interface and support for various PostgreSQL data types, such as INT8, NUMERIC, MONEY, BOOL, ARRAYS, etc. This ! module is written in Python. This version works with PostgreSQL 6.5.2 or later and Python 2.0 or later. --- 55,59 ---- PgSQL, provides the DB-API 2.0 compliant interface and support for various PostgreSQL data types, such as INT8, NUMERIC, MONEY, BOOL, ARRAYS, etc. This ! module is written in Python. This version works with PostgreSQL 7.0 or later and Python 2.0 or later. *************** *** 121,128 **** local system administrator. - Note: To build pyPgSQL to work with PostgreSQL 6.5.x (I highly recommend that - you upgrade your PostgreSQL to the latest version) you must arrange for - the macro 'PGSQL_6X' to be defined when you compile the C code. - 1.3.1 Platform specific notes ----------------------------- --- 121,124 ---- *************** *** 222,225 **** --- 218,222 ---- PgInt2 - creates a PgInt2 object from a string or number. PgInt8 - creates a PgInt8 object from a string or number. + PgLargeObject - creates a PgLargeObject from a connection and OID. PgQuoteString - Quotes a string, escaping any characters as needed, for use as input to a character/text field. *************** *** 1202,1205 **** --- 1199,1204 ---- Note: Both the libpq and PgSQL connection objects have the version attribute. + Note: Comparisons against strings (i.e. "7.0.1") does not work in Python 2.0. + 3.0 The PgSQL module -------------------- *************** *** 1282,1287 **** This attribute is a list of notices returned by the pq library. ! Note: Under normal usage, notices recieved from the pq library are con- ! verted into Warning exceptions. 2. The Connection object has an additional read-only attribute called version. --- 1281,1286 ---- This attribute is a list of notices returned by the pq library. ! Note: Under normal usage, certain (but not all) notices recieved from the ! libpq C-API library are converted into Warning exceptions. 2. The Connection object has an additional read-only attribute called version. |