Commit fb0f6c9d authored by unknown's avatar unknown

Fix for compiling error in sql_parse


sql/sql_parse.cc:
  Fixing merge issue with goto label missing.
BitKeeper/etc/logging_ok:
  Logging to logging@openlogging.org accepted
parent ae7cfe9e
...@@ -34,6 +34,7 @@ bk@mysql.r18.ru ...@@ -34,6 +34,7 @@ bk@mysql.r18.ru
brian@avenger.(none) brian@avenger.(none)
brian@brian-akers-computer.local brian@brian-akers-computer.local
brian@private-client-ip-101.oz.net brian@private-client-ip-101.oz.net
brian@zim.(none)
carsten@tsort.bitbybit.dk carsten@tsort.bitbybit.dk
cps@silver_beast.(none) cps@silver_beast.(none)
davida@isil.mysql.com davida@isil.mysql.com
......
...@@ -2564,7 +2564,7 @@ mysql_execute_command(THD *thd) ...@@ -2564,7 +2564,7 @@ mysql_execute_command(THD *thd)
TABLE_LIST *select_tables= lex->query_tables; TABLE_LIST *select_tables= lex->query_tables;
if ((res= create_table_precheck(thd, select_tables, create_table))) if ((res= create_table_precheck(thd, select_tables, create_table)))
goto create_error; goto unsent_create_error;
#ifndef HAVE_READLINK #ifndef HAVE_READLINK
lex->create_info.data_file_name=lex->create_info.index_file_name=0; lex->create_info.data_file_name=lex->create_info.index_file_name=0;
...@@ -2574,7 +2574,7 @@ mysql_execute_command(THD *thd) ...@@ -2574,7 +2574,7 @@ mysql_execute_command(THD *thd)
create_table->table_name) || create_table->table_name) ||
append_file_to_dir(thd, &lex->create_info.index_file_name, append_file_to_dir(thd, &lex->create_info.index_file_name,
create_table->table_name)) create_table->table_name))
goto create_error; goto unsent_create_error;
#endif #endif
/* /*
If we are using SET CHARSET without DEFAULT, add an implicit If we are using SET CHARSET without DEFAULT, add an implicit
...@@ -2606,7 +2606,7 @@ mysql_execute_command(THD *thd) ...@@ -2606,7 +2606,7 @@ mysql_execute_command(THD *thd)
unique_table(create_table, select_tables)) unique_table(create_table, select_tables))
{ {
my_error(ER_UPDATE_TABLE_USED, MYF(0), create_table->table_name); my_error(ER_UPDATE_TABLE_USED, MYF(0), create_table->table_name);
goto create_error; goto unsent_create_error;
} }
/* If we create merge table, we have to test tables in merge, too */ /* If we create merge table, we have to test tables in merge, too */
if (lex->create_info.used_fields & HA_CREATE_USED_UNION) if (lex->create_info.used_fields & HA_CREATE_USED_UNION)
...@@ -2619,7 +2619,7 @@ mysql_execute_command(THD *thd) ...@@ -2619,7 +2619,7 @@ mysql_execute_command(THD *thd)
if (unique_table(tab, select_tables)) if (unique_table(tab, select_tables))
{ {
my_error(ER_UPDATE_TABLE_USED, MYF(0), tab->table_name); my_error(ER_UPDATE_TABLE_USED, MYF(0), tab->table_name);
goto create_error; goto unsent_create_error;
} }
} }
} }
...@@ -2666,6 +2666,7 @@ mysql_execute_command(THD *thd) ...@@ -2666,6 +2666,7 @@ mysql_execute_command(THD *thd)
break; break;
/* put tables back for PS rexecuting */ /* put tables back for PS rexecuting */
unsent_create_error:
lex->link_first_table_back(create_table, link_to_local); lex->link_first_table_back(create_table, link_to_local);
goto error; goto error;
} }
......
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