From: Mike Bayer Date: Mon, 26 Apr 2010 22:36:47 +0000 (-0400) Subject: - Added integer coercion to the "type_conv" attribute when X-Git-Tag: rel_0_6_1~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7509fe59ab3d0437b478052cca2329b7c18a8682;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - Added integer coercion to the "type_conv" attribute when passed via query string, so that it is properly interpreted by Kinterbasdb. [ticket:1779] --- diff --git a/CHANGES b/CHANGES index 1428326c6f..e110c15e2b 100644 --- a/CHANGES +++ b/CHANGES @@ -31,6 +31,10 @@ CHANGES has_sequence() to work with older versions of Firebird that don't provide labels for result columns. [ticket:1521] + - Added integer coercion to the "type_conv" attribute when + passed via query string, so that it is properly interpreted + by Kinterbasdb. [ticket:1779] + 0.6.0 ===== diff --git a/lib/sqlalchemy/dialects/firebird/kinterbasdb.py b/lib/sqlalchemy/dialects/firebird/kinterbasdb.py index 84963ba8b7..82d1101a48 100644 --- a/lib/sqlalchemy/dialects/firebird/kinterbasdb.py +++ b/lib/sqlalchemy/dialects/firebird/kinterbasdb.py @@ -100,10 +100,12 @@ class FBDialect_kinterbasdb(FBDialect): opts['host'] = "%s/%s" % (opts['host'], opts['port']) del opts['port'] opts.update(url.query) - + + util.coerce_kw_type(opts, 'type_conv', int) + type_conv = opts.pop('type_conv', self.type_conv) concurrency_level = opts.pop('concurrency_level', self.concurrency_level) - + if self.dbapi is not None: initialized = getattr(self.dbapi, 'initialized', None) if initialized is None: