mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-12 07:10:33 +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>
|
2009-05-10 Federico Di Gregorio <fog@initd.org>
|
||||||
|
|
||||||
* Release 2.0.11.
|
* Release 2.0.11.
|
||||||
|
|
|
@ -116,7 +116,7 @@ class Connection(Shared.DC.ZRDB.Connection.Connection):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# check psycopg version and raise exception if does not match
|
# 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)" %
|
raise ImportError("psycopg version mismatch (imported %s)" %
|
||||||
psycopg2.__version__)
|
psycopg2.__version__)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user