mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Fixed version check in ZPsycopgDA
This commit is contained in:
parent
091102a919
commit
e5a696ad58
|
@ -1,3 +1,8 @@
|
|||
2009-05-19 Federico Di Gregorio <fog@initd.org>
|
||||
|
||||
* Applied patch from Robert Munro to fix version check
|
||||
in ZPSycopgDA.
|
||||
|
||||
2009-05-10 Federico Di Gregorio <fog@initd.org>
|
||||
|
||||
* Release 2.0.11.
|
||||
|
|
|
@ -116,7 +116,7 @@ class Connection(Shared.DC.ZRDB.Connection.Connection):
|
|||
pass
|
||||
|
||||
# check psycopg version and raise exception if does not match
|
||||
if psycopg2.__version__[:5] not in ALLOWED_PSYCOPG_VERSIONS:
|
||||
if psycopg2.__version__.split(' ')[0] not in ALLOWED_PSYCOPG_VERSIONS:
|
||||
raise ImportError("psycopg version mismatch (imported %s)" %
|
||||
psycopg2.__version__)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user