1
0
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:
jani@rhols221.adsl.netsonic.fi
2003-01-16 05:35:59 +02:00
parent 94cc7d751e
commit e79ed81d11
4 changed files with 149 additions and 40 deletions

View File

@ -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);