mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Added --compatible mode to mysqldump.
This commit is contained in:
@ -1198,7 +1198,9 @@ store_create_info(THD *thd, TABLE *table, String *packet)
|
||||
char buff[128];
|
||||
char* p;
|
||||
|
||||
if (table->table_charset)
|
||||
if (table->table_charset &&
|
||||
!(thd->variables.sql_mode & MODE_MYSQL323) &&
|
||||
!(thd->variables.sql_mode & MODE_MYSQL40))
|
||||
{
|
||||
packet->append(" CHARSET=");
|
||||
packet->append(table->table_charset->csname);
|
||||
|
Reference in New Issue
Block a user