[Psycopg] RELEASE: psycopg 2.0.7
Federico Di Gregorio
fog at initd.org
Mon Apr 14 15:32:42 CEST 2008
Il giorno lun, 14/04/2008 alle 13.48 +0200, Karsten Hilbert ha scritto:
> Looking forward to a release when it's time.
It is time! :)
First of all let me thank James here in public: without him this release
would not have been possible. Unfortunately lately (last year, I mean) I
was swamped in work and dragged more and more away from Python. James
did an incredible work and kudos for this release should go to him this
time (and to other contributors too, but he did 80% of the work, at
least.)
Anyway, here is psycopg 2.0.7, get it from the usual place (signed with
my gpg key and with full changelog):
http://initd.org/pub/software/psycopg/psycopg-2.0.7.tar.gz
http://initd.org/pub/software/psycopg/psycopg-2.0.7.tar.gz.sig
http://initd.org/pub/software/psycopg/ChangeLog-2.0
The usual excerpt from the NEWS file follows. Have fun!
federico
What's new in psycopg 2.0.7
---------------------------
* Improved error handling:
- All instances of psycopg2.Error subclasses now have pgerror,
pgcode and cursor attributes. They will be set to None if no
value is available.
- Exception classes are now chosen based on the SQLSTATE value from
the result. (#184)
- The commit() and rollback() methods now set the pgerror and pgcode
attributes on exceptions. (#152)
- errors from commit() and rollback() are no longer considered
fatal. (#194)
- If a disconnect is detected during execute(), an exception will be
raised at that point rather than resulting in "ProgrammingError:
no results to fetch" later on. (#186)
* Better PostgreSQL compatibility:
- If the server uses standard_conforming_strings, perform
appropriate quoting.
- BC dates are now handled if psycopg is compiled with mxDateTime
support. If using datetime, an appropriate ValueError is
raised. (#203)
* Other bug fixes:
- If multiple sub-interpreters are in use, do not share the Decimal
type between them. (#192)
- Buffer objects obtained from psycopg are now accepted by psycopg
too, without segfaulting. (#209)
- A few small changes were made to improve DB-API compatibility.
All the dbapi20 tests now pass.
* Miscellaneous:
- The PSYCOPG_DISPLAY_SIZE option is now off by default. This means
that display size will always be set to "None" in
cursor.description. Calculating the display size was expensive,
and infrequently used so this should improve performance.
- New QueryCanceledError and TransactionRollbackError exceptions
have been added to the psycopg2.extensions module. They can be
used to detect deadlocks and statement timeouts respectively.
- Cursor objects now have a "closed" attribute. (#164)
- If psycopg has been built with debug support, it is now necessary
to set the PSYCOPG_DEBUG environment variable to turn on debug
spew.
--
Federico Di Gregorio http://people.initd.org/fog
Debian GNU/Linux Developer fog at debian.org
INIT.D Developer fog at initd.org
God is in the rain... -- Evey Hammond
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio
firmata digitalmente
Url : http://lists.initd.org/pipermail/psycopg/attachments/20080414/2f27746d/attachment.pgp
More information about the Psycopg
mailing list