summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/mysql/oursql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2009-11-15 19:20:22 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2009-11-15 19:20:22 +0000
commit5f6ed1a3f8bb0b2a724c7f07b98936433a3ef053 (patch)
tree8c0c389fc315127d1942db0cb566d118ddc54629 /lib/sqlalchemy/dialects/mysql/oursql.py
parentb14d53aba109cc33b245135ac490dc896d56100f (diff)
downloadsqlalchemy-5f6ed1a3f8bb0b2a724c7f07b98936433a3ef053.tar.gz
- pg8000 + postgresql dialects now check for float/numeric return
types to more intelligently determine float() vs. Decimal(), [ticket:1567] - since result processing is a hot issue of late, the DBAPI type returned from cursor.description is certainly useful in cases like these to determine an efficient result processor. There's likely other result processors that can make use of it. But, backwards incompat change to result_processor(). Happy major version number..
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/oursql.py')
-rw-r--r--lib/sqlalchemy/dialects/mysql/oursql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/oursql.py b/lib/sqlalchemy/dialects/mysql/oursql.py
index 37537483d..5558c1a19 100644
--- a/lib/sqlalchemy/dialects/mysql/oursql.py
+++ b/lib/sqlalchemy/dialects/mysql/oursql.py
@@ -36,7 +36,7 @@ class _PlainQuery(unicode):
class _oursqlNumeric(NUMERIC):
- def result_processor(self, dialect):
+ def result_processor(self, dialect, coltype):
if self.asdecimal:
return
def process(value):
@@ -48,7 +48,7 @@ class _oursqlNumeric(NUMERIC):
class _oursqlBIT(BIT):
- def result_processor(self, dialect):
+ def result_processor(self, dialect, coltype):
"""oursql already converts mysql bits, so."""
return None