From 8b12c8f1c2048a9ef6f19b66823bf6053efff565 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Tue, 15 Jul 2008 19:40:08 +0000 Subject: - Removed 2.3 Decimal compat --- lib/sqlalchemy/databases/mysql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/databases/mysql.py') diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 704abbe6d..a56e6ad79 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -153,7 +153,7 @@ Notes page on the wiki at http://www.sqlalchemy.org is a good resource for timely information affecting MySQL in SQLAlchemy. """ -import datetime, inspect, re, sys +import datetime, decimal, inspect, re, sys from array import array as _array from sqlalchemy import exc, log, schema, sql, util @@ -338,7 +338,7 @@ class MSNumeric(sqltypes.Numeric, _NumericType): def result_processor(self, dialect): if not self.asdecimal: def process(value): - if isinstance(value, util.decimal_type): + if isinstance(value, decimal.Decimal): return float(value) else: return value -- cgit v1.2.1