Commit e10a4156 authored by unknown's avatar unknown

Fix failing ddl_i18n* tests in the team tree.

parent 88607040
......@@ -2121,7 +2121,7 @@ static uint dump_routines_for_db(char *db)
restore_sql_mode(sql_file, ";");
if (mysql_num_fields(routine_res) > 3)
if (mysql_num_fields(routine_res) >= 6)
{
restore_cs_variables(sql_file, ";");
......@@ -2819,6 +2819,9 @@ static int dump_triggers_for_table(char *table_name, char *db_name)
/* Get database collation. */
if (switch_character_set_results(mysql, "binary"))
DBUG_RETURN(TRUE);
if (fetch_db_collation(db_name, db_cl_name, sizeof (db_cl_name)))
DBUG_RETURN(TRUE);
......@@ -2831,9 +2834,6 @@ static int dump_triggers_for_table(char *table_name, char *db_name)
if (mysql_query_with_error_report(mysql, &show_triggers_rs, query_buff))
DBUG_RETURN(TRUE);
if (mysql_num_rows(show_triggers_rs))
fprintf(sql_file, "\n");
/* Dump triggers. */
while ((row= mysql_fetch_row(show_triggers_rs)))
......@@ -2870,11 +2870,11 @@ static int dump_triggers_for_table(char *table_name, char *db_name)
}
if (mysql_num_rows(show_triggers_rs))
fprintf(sql_file, "\n");
mysql_free_result(show_triggers_rs);
if (switch_character_set_results(mysql, default_charset))
DBUG_RETURN(TRUE);
/*
make sure to set back opt_compatible mode to
original value
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment