1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

innodb compatibility fix

This commit is contained in:
Sergei Golubchik
2011-05-26 19:16:10 +02:00
parent 34c9428871
commit c1a92f9cae
3 changed files with 15 additions and 4 deletions

View File

@@ -3919,6 +3919,12 @@ get_innobase_type_from_mysql_type(
case HA_KEYTYPE_DOUBLE:
return(DATA_DOUBLE);
case HA_KEYTYPE_BINARY:
if (field->type() == MYSQL_TYPE_TINY)
if (field->type() == MYSQL_TYPE_TINY)
{ // compatibility workaround
*unsigned_flag= 1 ;
return DATA_INT;
}
return(DATA_FIXBINARY);
case HA_KEYTYPE_VARBINARY2:
if (field->type() != MYSQL_TYPE_VARCHAR)