From 7509fe59ab3d0437b478052cca2329b7c18a8682 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 26 Apr 2010 18:36:47 -0400 Subject: [PATCH] - Added integer coercion to the "type_conv" attribute when passed via query string, so that it is properly interpreted by Kinterbasdb. [ticket:1779] --- CHANGES | 4 ++++ lib/sqlalchemy/dialects/firebird/kinterbasdb.py | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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: -- 2.47.3