From 90d3614086aa5b5d8fe5c6136e9b71391843f27e Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Tue, 20 Nov 2012 15:51:31 +0100 Subject: [PATCH] daklib/dbconn.py: use unicode workaround also for sqlalchemy 0.7 Reference: https://lists.debian.org/debian-dak/2012/11/msg00043.html --- daklib/dbconn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5