make table option reader more future-proof

This commit is contained in:
Sergei Golubchik 2010-05-12 18:15:35 +02:00
parent a3e8ae1280
commit f1fb9b67c4

View File

@ -587,7 +587,12 @@ my_bool engine_table_options_frm_read(const uchar *buff, uint length,
buff++; buff++;
} }
DBUG_RETURN(buff != buff_end); if (buff < buff_end)
sql_print_warning("Table %`s was created in a later MariaDB version - "
"unknown table attributes were ignored",
share->table_name);
DBUG_RETURN(buff > buff_end);
} }
/** /**