From bdeefe4f011355a4c088d516284656c8503e8137 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Sun, 19 Sep 2010 14:42:14 +0000 Subject: [PATCH] Seems to work with 0.6 too Signed-off-by: Mark Hymers --- daklib/dbconn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 817afb26..2ec1b60c 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -72,11 +72,11 @@ class DebVersion(sqltypes.Text): return "DEBVERSION" sa_major_version = sqlalchemy.__version__[0:3] -if sa_major_version == "0.5": +if sa_major_version in ["0.5", "0.6"]: from sqlalchemy.databases import postgres postgres.ischema_names['debversion'] = DebVersion else: - raise Exception("dak isn't ported to SQLA versions != 0.5 yet. See daklib/dbconn.py") + raise Exception("dak only ported to SQLA versions 0.5 and 0.6. See daklib/dbconn.py") ################################################################################ -- 2.39.5