Detect pre-release postgresql versions

Issue #1636 resolved
Former user created an issue

While trying out SQLAlchemy 0.6 from trunk, svn revision 6552, with a developement version of PostgreSQL, git commit 84775b16ed1e40b1561adbfdada6c7c68233a73d, I found that SQLAlchemy does not correctly parse pre-release version strings.

AssertionError: Could not determine version from string 'PostgreSQL 8.5devel on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) 4.4.2, 64-bit'

I have attached a traceback and a simple patch for this particular case of the regex.

Comments (7)

  1. Mike Bayer repo owner

    this should be ported into 0.5 as well, even though its less critical there. a unit test in test/dialect/test_postgresql.py would be along the lines of: testing.db.dialect.server_version_info("8.5devel"), testing.db.dialect.server_version_info("foo bar") etc.

  2. Log in to comment