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.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py
index a25a21e9b..60435f220 100644
--- a/lib/sqlalchemy/databases/mysql.py
+++ b/lib/sqlalchemy/databases/mysql.py
@@ -79,6 +79,11 @@ class MSBinary(sqltypes.Binary):
return "BINARY(%d)" % self.length
else:
return "BLOB"
+ def convert_result_value(self, value, engine):
+ if value is None:
+ return None
+ else:
+ return buffer(value)
class MSBoolean(sqltypes.Boolean):
def get_col_spec(self):
@@ -142,7 +147,6 @@ class MySQLEngine(ansisql.ANSISQLEngine):
def type_descriptor(self, typeobj):
return sqltypes.adapt_type(typeobj, colspecs)
-
def last_inserted_ids(self):
return self.context.last_inserted_ids