From: <gha...@us...> - 2006-06-03 00:12:32
|
Update of /cvsroot/pypgsql/pypgsql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7071 Modified Files: Announce Log Message: Announcement for pyPgSQL 2.5. Index: Announce =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/Announce,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** Announce 16 Jul 2003 04:28:49 -0000 1.24 --- Announce 3 Jun 2006 00:12:25 -0000 1.25 *************** *** 1,6 **** ! Announce: pyPgSQL - Version 2.4 is released. =========================================================================== ! pyPgSQL v2.4 has been released. It is available at http://pypgsql.sourceforge.net. --- 1,6 ---- ! Announce: pyPgSQL - Version 2.5 is released. =========================================================================== ! pyPgSQL v2.5 has been released. It is available at http://pypgsql.sourceforge.net. *************** *** 14,19 **** 2.0 or later. ! It was tested with PostgreSQL 7.0.3, 7.1.3, 7.2.2, 7.3, Python 2.0.1, 2.1.3 ! and 2.2.2. Note: It is highly recommended that you use PostgreSQL 7.2 or later and --- 14,19 ---- 2.0 or later. ! It was tested with PostgreSQL 8.1.4 and the latest patchlevels of Python 2.1, ! 2.2, 2.3 and 2.4. Note: It is highly recommended that you use PostgreSQL 7.2 or later and *************** *** 31,119 **** =========================================================================== ! Changes since pyPgSQL Version 2.3 ================================= - =-=-=-=-=-=-=-=-=-=-=-=-=- ** IMPORTANT NOTE ** =-=-=-=-=-=-=-=-=-=-=-=-=-= - NOTE: There is a change to the Connection.binary() function that *could* - cause existing code to break. Connection.binary() no longer commits - the transaction used to create the large object. The application - developer is now responsible for commiting (or rolling back) the - transaction. - -=-=-=-=-=-=-=-=-=-=-=-=-= ** IMPORTANT NOTE ** -=-=-=-=-=-=-=-=-=-=-=-=-=- - Changes to README ----------------- ! * Updates for 2.4. ! Changes to PgSQL.py ------------------- ! * Applied patch from Laurent Pinchart to allow _quote to correctly process ! objects that are sub-classed from String and Long types. ! * Change the name of the quoting function back to _quote. Variables named ! like __*__ should be restrict to system names. ! * PgTypes is now hashable. repr() of a PgType will now return the repr() ! of the underlying OID. ! * Connection.binary() will now fail if autocommit is enabled. ! * Connection.binary() will no longer commit the transaction after creating ! the large object. The application developer is now responsible for ! commiting (or for rolling back) the transaction [Bug #747525]. ! * Added PG_TIMETZ to the mix [Patch #708013]. ! * Pg_Money will now accept a string as a parameter. ! * PostgreSQL int2, int, int4 will now be cast into Python ints. Int8 will ! be cast into a Python long. Float4, float8, and money types will be ! cast into a Python float. ! * Correct problem with the PgNumeric.__radd__ method. [Bug #694358] ! * Correct problem with conversion of negitive integers (with a given scale ! and precision) to PgNumerics. [Bug #694358] ! * Work around a problem where the precision and scale of a query result ! can be different from the first result in the result set. [Bug #697221] ! * Change the code so that the display length in the cursor.description ! attribute is always None instead of '-1'. ! * Fixed another problem with interval <-> DateTimeDelta casting. ! * Corrected a problem that caused the close of a portal (ie. PostgreSQL ! cursor) to fail. ! * Corrected a problem with interval <-> DateTimeDelta casting. [Bug #653044] ! * Corrected problem found by Adam Buraczewski in the __setupTransaction ! function. ! * Allow both 'e' and 'E' to signify an exponent in the PgNumeric constructor. ! * Correct some problems that were missed in yesterday's fixes (Thanks, ! Adam, for the help with the problems) Changes to libpqmodule.c ------------------------ ! * On win32, we usually statically link against libpq. Because of ! fortunate circumstances, a problem didn't show up until now: we need to ! call WSAStartup() to initialize the socket stuff from Windows *in our ! module* in order for the statically linked libpq to work. I just took ! the relevant DllMain function from the libpq sources and put it here. ! * Modified some comments to reflect reality. ! * Applied patch from Laurent Pinchart: In libPQquoteString, bytea are ! quoted using as much as 5 bytes per input byte (0x00 is quoted '\\000'), ! so allocating (slen * 4) + 3 is not enough for data that contain lots of ! 0x00 bytes. ! * Added PG_TIMETZ to the mix [Patch #708013]. ! ! Changes to pgboolean.c ! ---------------------- ! * Change the name of the quoting function back to _quote. __*__ type ! names should be restricted to system names. Changes to pgconnection.c ------------------------- ! * Applied patch by Laurent Pinchart to correct a problem lo_import, ! lo_export, lo_unlink. ! * In case PQgetResult returns NULL, let libPQgetResult return a Python ! None, like the docstring says. This is necessary in order to be able ! to cancel queries, as after cancelling a query with PQrequestCancel, ! we need to read results until PQgetResult returns NULL. ! ! Changes to pglargeobject.c ! -------------------------- ! * Change the name of the quoting function back to _quote. __*__ type ! names should be restricted to system names. ! Changes to pgnotify.c --------------------- ! * Fixed a bug in the code. The code in question use to work, but doesn't ! anymore (possible change to libpq?). --- 31,91 ---- =========================================================================== ! Changes since pyPgSQL Version 2.4 ================================= Changes to README ----------------- ! * Updates for 2.5. ! Changes to PgSQL.py ------------------- ! * Additional attribute cursor.debug: ! ! Setting this attribute to 'text' will cause the query that will ! be executed to be displayed to STDOUT. If it is set to 'pre' or ! 'div', the query will be displayed to STDOUT within a <pre> or ! <dif> HTML block. If it is set to None (the default), the query ! will not be displayed. ! ! * New module-level variable useUTCtimeValue: ! ! Setting this variable to 1 will cause the datatime instance returned from ! the result set for a timestame with timezone to reference the corresponding ! UTC time value (not the value expressed in the clients time zone). ! ! * mxDateTime's RelativeDateTime instead of DateTimeDelta is now used for ! PostgreSQL INTERVALs. ! ! * Several other fixes in the PostgreSQL interval code ! ! * Several bugfixes in the PgNumeric type ! ! * PgInt2 and PgInt8 used to be custom number types that checked for overflows ! in their specific ranges. In order to make them work across current Python ! versions we got rid of them and replaced them with int and long. ! ! * Many changes in parameter quoting to make them work in more cases like ! * PostgreSQL procedures Changes to libpqmodule.c ------------------------ ! * Bugfix for quoting Bytea types Changes to pgconnection.c ------------------------- ! * Fixed compatibility problems with PostgreSQL 8.x. ! * Added debug support ! Changes to pgresult.c --------------------- ! * Integrated patch #1224272. Use PyOS_ascii_strtod instead of strtod in order ! to be locale-agnostic. ! ! Changes to pgversion.c ! ---------------------- ! * Applied patch #882032. Vendor-extensions to version ! number should not create problems any longer. ! ! * Fixed Bug #786712 & #816729: Allowed for a version string ! containing the words "alpha" and "beta". |