mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-29 20:23:45 +03:00
Fixed PostgreSQL version detection
This commit is contained in:
parent
29d00f56f6
commit
a2af059e6c
|
@ -1,5 +1,8 @@
|
||||||
2009-08-08 Federico Di Gregorio <fog@initd.org>
|
2009-08-08 Federico Di Gregorio <fog@initd.org>
|
||||||
|
|
||||||
|
* setup.py: fixed version detection for PostgreSQL rc, as
|
||||||
|
suggested by Sok Ann Yap.
|
||||||
|
|
||||||
* ZPsycopgDA/db.py: applied serialization error retry from Brian
|
* ZPsycopgDA/db.py: applied serialization error retry from Brian
|
||||||
Sutherland.
|
Sutherland.
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -208,7 +208,7 @@ class psycopg_build_ext(build_ext):
|
||||||
except:
|
except:
|
||||||
pgversion = "7.4.0"
|
pgversion = "7.4.0"
|
||||||
|
|
||||||
verre = re.compile(r"(\d+)\.(\d+)(?:(?:\.(\d+))|(devel|beta\d+))")
|
verre = re.compile(r"(\d+)\.(\d+)(?:(?:\.(\d+))|(devel|(beta|rc)\d+))")
|
||||||
m = verre.match(pgversion)
|
m = verre.match(pgversion)
|
||||||
if m:
|
if m:
|
||||||
pgmajor, pgminor, pgpatch = m.group(1, 2, 3)
|
pgmajor, pgminor, pgpatch = m.group(1, 2, 3)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user