diff options
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 451a0956cf8..3ec45c8eca9 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -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); |