1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00
Emit "TYPE=" for 4.0 and 3.23 compatible modes
This commit is contained in:
acurtis@pcgem.rdg.cyberkinetica.com
2004-02-05 02:30:28 +00:00
parent ed75a5da76
commit d0d54abcf2
3 changed files with 51 additions and 1 deletions

View File

@@ -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 &&