mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Bug#2634
Emit "TYPE=" for 4.0 and 3.23 compatible modes
This commit is contained in:
@@ -1338,7 +1338,10 @@ store_create_info(THD *thd, TABLE *table, String *packet)
|
||||
packet->append("\n)", 2);
|
||||
if (!(thd->variables.sql_mode & MODE_NO_TABLE_OPTIONS) && !foreign_db_mode)
|
||||
{
|
||||
packet->append(" ENGINE=", 8);
|
||||
if (thd->variables.sql_mode & (MODE_MYSQL323 | MODE_MYSQL40))
|
||||
packet->append(" TYPE=", 6);
|
||||
else
|
||||
packet->append(" ENGINE=", 8);
|
||||
packet->append(file->table_type());
|
||||
|
||||
if (table->table_charset &&
|
||||
|
||||
Reference in New Issue
Block a user