From 4cff2c1a3c6600376f2ce09692df233928a9f4f7 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 29 Apr 2006 01:05:13 +0000 Subject: *another* big types change....the old way was still wrong...this way is better (still need to go through it again since i am apparently type-impaired....) --- lib/sqlalchemy/databases/mysql.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/databases/mysql.py') 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 -- cgit v1.2.1