summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
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