From 2aa4c33c265448789dec61280ee96005295ab2fb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 3 Aug 2010 14:09:26 +0200 Subject: TINYBLOB is also limited to 255 bytes so handle it as short string --- odb/mysql/common.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/odb/mysql/common.cxx b/odb/mysql/common.cxx index 71e3e00..e1441f1 100644 --- a/odb/mysql/common.cxx +++ b/odb/mysql/common.cxx @@ -86,14 +86,15 @@ namespace mysql break; } case sql_type::BINARY: + case sql_type::TINYBLOB: { // BINARY's range is always 255 or less from MySQL 5.0.3. + // TINYBLOB can only store up to 255 bytes. // traverse_short_string (m, t); break; } case sql_type::VARBINARY: - case sql_type::TINYBLOB: case sql_type::BLOB: case sql_type::MEDIUMBLOB: case sql_type::LONGBLOB: -- cgit v1.1