summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2007-08-01 20:07:07 +0000
committerJason Kirtland <jek@discorporate.us>2007-08-01 20:07:07 +0000
commit6b7f670c4ccb6a2c45a6da459ed29b07784498b0 (patch)
treea36cfc6ec9bfe1ee8b3debb4fcce436159e622e3 /lib/sqlalchemy/databases/mysql.py
parent963087faf48b42e2885e9132c1be1c1f1b4d18ef (diff)
downloadsqlalchemy-6b7f670c4ccb6a2c45a6da459ed29b07784498b0.tar.gz
Stopgap for post- #646 and r3030, wedge in 0.3 Decimals-are-floats behavior for vanilla 2.3 Python.
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r--lib/sqlalchemy/databases/mysql.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py
index 331b672bd..81a17cbe7 100644
--- a/lib/sqlalchemy/databases/mysql.py
+++ b/lib/sqlalchemy/databases/mysql.py
@@ -6,7 +6,6 @@
import re, datetime, inspect, warnings, weakref, operator
from array import array as _array
-from decimal import Decimal
from sqlalchemy import sql, schema, ansisql
from sqlalchemy.engine import default
@@ -166,7 +165,7 @@ class MSNumeric(sqltypes.Numeric, _NumericType):
return value
def convert_result_value(self, value, dialect):
- if not self.asdecimal and isinstance(value, Decimal):
+ if not self.asdecimal and isinstance(value, util.decimal_type):
return float(value)
else:
return value