]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/dbconn.py: SQLAlchemy 0.9 is also fine.
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 4 May 2014 22:02:29 +0000 (00:02 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 4 May 2014 22:02:29 +0000 (00:02 +0200)
daklib/dbconn.py

index 7a1fcb225b21330cdea9e63173cabc399aac3cf7..988309361b3bef1fa2295c8184bedc8f60eddc31 100644 (file)
@@ -109,11 +109,11 @@ class DebVersion(UserDefinedType):
         return None
 
 sa_major_version = sqlalchemy.__version__[0:3]
-if sa_major_version in ["0.5", "0.6", "0.7", "0.8"]:
+if sa_major_version in ["0.5", "0.6", "0.7", "0.8", "0.9"]:
     from sqlalchemy.databases import postgres
     postgres.ischema_names['debversion'] = DebVersion
 else:
-    raise Exception("dak only ported to SQLA versions 0.5 to 0.8.  See daklib/dbconn.py")
+    raise Exception("dak only ported to SQLA versions 0.5 to 0.9.  See daklib/dbconn.py")
 
 ################################################################################