Commit 6f46f997 authored by unknown's avatar unknown

Fix of previous push.


sql/sql_table.cc:
  stupid me. error already exists in the function. Using a local 'int error' resulted in global 'error' not being inited, which probably made next steps (those testing global error) go wrong!
parent d0062775
......@@ -1938,8 +1938,8 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
{
/* We don't log the statement, it will be logged later. */
tmp_disable_binlog(thd);
int error= mysql_create_table(thd, new_db, tmp_name,
create_info,create_list,key_list,1);
error= mysql_create_table(thd, new_db, tmp_name,
create_info,create_list,key_list,1);
reenable_binlog(thd);
if (error)
DBUG_RETURN(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