]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/dbconn.py: use unicode workaround also for sqlalchemy 0.7
authorAnsgar Burchardt <ansgar@debian.org>
Tue, 20 Nov 2012 14:51:31 +0000 (15:51 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Sat, 24 Nov 2012 17:51:09 +0000 (18:51 +0100)
Reference: https://lists.debian.org/debian-dak/2012/11/msg00043.html

daklib/dbconn.py

index f2f8a9020ab7271c77e1aeddb8f765ea10424efd..413a0fdd1fcf5fc33a96c969f850bf17d9fdf1d7 100644 (file)
@@ -2892,7 +2892,7 @@ class DBConn(object):
             engine_args['pool_size'] = int(cnf['DB::PoolSize'])
         if cnf.has_key('DB::MaxOverflow'):
             engine_args['max_overflow'] = int(cnf['DB::MaxOverflow'])
-        if sa_major_version == '0.6' and cnf.has_key('DB::Unicode') and \
+        if sa_major_version in ('0.6', '0.7') and cnf.has_key('DB::Unicode') and \
             cnf['DB::Unicode'] == 'false':
             engine_args['use_native_unicode'] = False