diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-09-29 17:24:29 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-09-29 17:24:29 -0400 |
commit | 94d421ca2f2d9f45b5feb4419a34b97a50b8d90b (patch) | |
tree | 853aca05d03f3fe013207f0444271dc6944f6340 /lib/sqlalchemy/dialects/postgresql/base.py | |
parent | fc8c40e8c58764f46aa794986c269789eb2b72b1 (diff) | |
download | sqlalchemy-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.py | 4 |
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: |