From 635ab132c0db6df14edcf5d68d40871c0cd402f7 Mon Sep 17 00:00:00 2001 From: Federico Di Gregorio Date: Wed, 18 May 2005 08:12:10 +0000 Subject: [PATCH] Preparing release 2.0b2. --- ChangeLog | 4 +++- NEWS | 13 +++++++++++++ ZPsycopgDA/DA.py | 4 ++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a4f9d3c0..bdd17a59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2005-05-18 Federico Di Gregorio + * Release 2.0b2. + * ZPsycopgDA/DA.py (ALLOWED_PSYCOPG_VERSIONS): updated to work with 2.0b2 only (will support only the exact version untill final 2.0 release.) @@ -10,7 +12,7 @@ 2005-05-15 Federico Di Gregorio * psycopg/microprotocols.c (microprotocols_adapt): fixed memory - leak on None as suggested by gh (bug #16.) + leak on None as suggested by gh (closes: #16). 2005-05-10 Federico Di Gregorio diff --git a/NEWS b/NEWS index 8bf7e3a4..814ec4f9 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,16 @@ +What's new in psycopg 2.0 beta 2 +-------------------------------- + +* Fixed ZPsycopgDA version check (ZPsycopgDA can now be imported in + Zope.) + +* psycopg.extras.DictRow works even after a new query on the generating + cursor. + +* Better setup.py for win32 (should build with MSCV or mingw.) + +* Generic fixed and memory leaks plugs. + What's new in psycopg 2.0 beta 1 -------------------------------- diff --git a/ZPsycopgDA/DA.py b/ZPsycopgDA/DA.py index fe939eb8..2ebb8e20 100644 --- a/ZPsycopgDA/DA.py +++ b/ZPsycopgDA/DA.py @@ -18,7 +18,7 @@ # See the LICENSE file for details. -ALLOWED_PSYCOPG_VERSIONS = ('2.0b1', '2.0b2') +ALLOWED_PSYCOPG_VERSIONS = ('2.0b2') import sys import db @@ -109,7 +109,7 @@ class Connection(DABase.Connection): # check psycopg version and raise exception if does not match if psycopg.__version__ not in ALLOWED_PSYCOPG_VERSIONS: - raise ImportError("psycopg version mismatch (imported %s)" + + raise ImportError("psycopg version mismatch (imported %s)" %s psycopg.__version__) self.set_type_casts()