summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-09-29 17:24:29 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-09-29 17:24:29 -0400
commit94d421ca2f2d9f45b5feb4419a34b97a50b8d90b (patch)
tree853aca05d03f3fe013207f0444271dc6944f6340 /lib/sqlalchemy/dialects/postgresql/base.py
parentfc8c40e8c58764f46aa794986c269789eb2b72b1 (diff)
downloadsqlalchemy-94d421ca2f2d9f45b5feb4419a34b97a50b8d90b.tar.gz
- put exact version string in the test
- use match with a .* preceding instead of search
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index 01bf6a829..ecbbf1674 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -1543,8 +1543,8 @@ class PGDialect(default.DefaultDialect):
def _get_server_version_info(self, connection):
v = connection.execute("select version()").scalar()
- m = re.search(
- '(?:PostgreSQL|EnterpriseDB) '
+ m = re.match(
+ '.*(?:PostgreSQL|EnterpriseDB) '
'(\d+)\.(\d+)(?:\.(\d+))?(?:\.\d+)?(?:devel)?',
v)
if not m: