1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

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!
This commit is contained in:
unknown
2004-09-06 23:20:33 +02:00
parent d00627758b
commit 6f46f997b1

View File

@@ -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);