Commit 6f46f997 authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1938,7 +1938,7 @@ 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,
    error= mysql_create_table(thd, new_db, tmp_name,
                              create_info,create_list,key_list,1);
    reenable_binlog(thd);
    if (error)