From: Ansgar Burchardt Date: Tue, 20 Nov 2012 14:51:31 +0000 (+0100) Subject: daklib/dbconn.py: use unicode workaround also for sqlalchemy 0.7 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=90d3614086aa5b5d8fe5c6136e9b71391843f27e;p=dak.git daklib/dbconn.py: use unicode workaround also for sqlalchemy 0.7 Reference: https://lists.debian.org/debian-dak/2012/11/msg00043.html --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index f2f8a902..413a0fdd 100644 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -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