From: Gerhard H?r. <gha...@us...> - 2002-09-08 16:17:53
|
Update of /cvsroot/pypgsql/pypgsql In directory usw-pr-cvs1:/tmp/cvs-serv31301 Modified Files: Announce Log Message: 08SEP2002 gh Announcement for pyPgSQL 2.2. Index: Announce =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/Announce,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Announce 5 Jun 2002 08:49:17 -0000 1.17 --- Announce 8 Sep 2002 16:17:51 -0000 1.18 *************** *** 1,7 **** ! Announce: pyPgSQL - Version 2.1 is released. =========================================================================== ! pyPgSQL v2.1 has been released. It is a bug fix release to version 2.0, but ! also includes some enhancements. It is available at http://pypgsql.sourceforge.net. --- 1,6 ---- ! Announce: pyPgSQL - Version 2.2 is released. =========================================================================== ! pyPgSQL v2.2 has been released. It is a bug fix release to version 2.1. It is available at http://pypgsql.sourceforge.net. *************** *** 40,107 **** =========================================================================== ! Changes since pyPgSQL Version 2.0 ================================= ! pyPgSQL 2.1 is now compatible and tested to work with PostgreSQL 7.2.x. Changes to README ----------------- ! * Added documentation for the new TransactionLevel attribute of ! the Connection object. Changes to PgSQL.py ------------------- ! * Added code to implement support for setting PostgreSQL transaction ! levels. [Feature Request #481727]. ! ! * Got rid of redundant building and storing of the ! mapping of column names to column positions in the PgResultSet class. Now, ! rows of the same query are instances of a dynamically created class, which ! has this mapping as a class attribute instead of an attribute of the ! instance. This saves a lot of space, and also slightly increases ! performance of cursor fetches. ! ! * Fixed the array parsing so it also works with PostgreSQL versions 7.2.x. ! The PostgreSQL developers changed the quoting in the string representation ! of arrays in 7.2 beta cycle: strings are now only quoted when otherwise ! the array representation would be ambiguous. The new parseArray() method ! should handle the old and new way of quoting in arrays. [Bug #539769]. ! Also added a new testcase for the ARRAY type. ! ! * Improved the array parsing, so that it now passes all ! the new mean testcases. Added support for parsing multidimensional arrays. ! Eventually, the array parsing code should go as a support function into ! libpq. ! ! * Replaced all typechecks with "is" operators instead ! of equals. Mark McEahern had a problem with using pyPgSQL in combination ! with a FixedPoint class where the reason was that the FixedPoint class was ! not comarable to None. The consensus on python-list was that None and all ! types are singletons, so they should be checked using "is", which is also ! faster, because it only checks for object identity. ! ! * Fixed a couple of problems found by Steven D. Arnold: ! 1. A undefined variable was used in a few places where notices were popped ! from the notice list. ! 2. Comparisons between 2 PgNumerics gave the wrong result. ! ! * Fixed problem that occurs when the sum() aggregate returns a ! NULL. [Bug #505162]. ! ! Changes to pgversion.c ! ---------------------- ! * Allow for development and beta versions of PostgreSQL ! Changes to libpqmodule.c ! ------------------------ ! * Removed special escaping of control characters in arrays. ! * Added support for two missing OID types: aclitem and macaddr. ! * Applied patch by Chris Bainbridge [Patch #505941] "fix for null bytes in ! bytea". ! Changes to pgresult.c ! --------------------- ! * Change the point at which an OID is tested to see if it is a ! Large Object from 1700 to 16383. --- 39,82 ---- =========================================================================== ! Changes since pyPgSQL Version 2.1 ================================= ! The following source code files were added to Version 2.2 of pyPgSQL: ! ! pyPgSQL.spec - RPM spec file, contributed by Sean Reifschneider. Changes to README ----------------- ! * Added note about case-insensitiveness of column access in PgResultSet. Changes to PgSQL.py ------------------- ! * Fixed various problems with the PgResultSet: Column (attribute and ! dictionary) access is now case-insensitive. A __contains__ method was added ! and the __setattr__ method was fixed. The get method got an optional default ! value parameter. ! * Fixed various problems with the PgNumeric type: ! - Added code to allow a float as an argument to the PgNumeric constructor. ! - You can now change the precision/scale of a PgNumeric by: ! a = PgNumeric(pgnumeric, new prec, new scale). ! This can be used to 'cast' a PgNumeric to the proper precision and scale ! before storing it in a field. ! - The arithmatic routines (__add__, __radd__, etc) now ensure that the ! arguments are properly coerced to the correct types. ! - Added support for the augmented arithmetic operations (__iadd__, etc). ! - The math routines would lose precision because the precision/ scale were ! set to be the same as the first operand. This is no longer the case all ! precision is retained for the +, -, and * operations. ! * Fixed problem that occurs when a query on an OID field doesn't return any ! rows. [Bug #589370]. ! ! * Applied patch #569203 and also added __pos__ and __abs__ special methods to ! PgNumeric. ! * Ensure proper SQL-quoting of long ints. ! Changes to PgSQLTestcases.py ! ---------------------------- ! * 14 new tests, mostly for PgNumeric and PgResultSet. |