]> err.no Git - dak/commitdiff
bugfix
authorTorsten Werner <twerner@debian.org>
Thu, 3 Mar 2011 22:43:55 +0000 (22:43 +0000)
committerTorsten Werner <twerner@debian.org>
Thu, 3 Mar 2011 22:43:55 +0000 (22:43 +0000)
Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/dbconn.py

index c7ecdc189cb3125b132fb350fb4756193ce655ca..5bff4186df00dba323e449a482bc90c1f6eba93a 100755 (executable)
@@ -3312,7 +3312,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 == '0.6' and cnf.has_key('DB::Unicode') and \
             cnf['DB::Unicode'] == 'false':
             engine_args['use_native_unicode'] = False