diff options
author | Jason Kirtland <jek@discorporate.us> | 2008-07-15 19:40:08 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2008-07-15 19:40:08 +0000 |
commit | 8b12c8f1c2048a9ef6f19b66823bf6053efff565 (patch) | |
tree | 528de821fb080eaee04b077e25e2746150d2658f /lib/sqlalchemy/databases/mysql.py | |
parent | 1d37472fdd1e4091fe2d158a21b27043fc8626f9 (diff) | |
download | sqlalchemy-8b12c8f1c2048a9ef6f19b66823bf6053efff565.tar.gz |
- Removed 2.3 Decimal compat
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r-- | lib/sqlalchemy/databases/mysql.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |