summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-04-29 01:05:13 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-04-29 01:05:13 +0000
commit4cff2c1a3c6600376f2ce09692df233928a9f4f7 (patch)
tree0178098e371768c12d6daba27b6b7cd9f764dd44 /lib/sqlalchemy/databases/mysql.py
parent409acb42086bb82bdfc784dafef5a6fa50afd0e0 (diff)
downloadsqlalchemy-4cff2c1a3c6600376f2ce09692df233928a9f4f7.tar.gz
*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....)
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