Commit fd74a0da authored by unknown's avatar unknown

fix for compiler warning


sql/sql_table.cc:
  initialize variables used in 'err:' before going to err.
parent d66157e3
......@@ -6928,7 +6928,7 @@ copy_data_between_tables(TABLE *from,TABLE *to,
{
int error= 1, errpos= 0;
Copy_field *copy= NULL, *copy_end;
ulong found_count,delete_count;
ulong found_count= 0, delete_count= 0;
THD *thd= current_thd;
uint length= 0;
SORT_FIELD *sortorder;
......@@ -6996,8 +6996,6 @@ copy_data_between_tables(TABLE *from,TABLE *to,
}
found_count=delete_count=0;
if (order)
{
if (to->s->primary_key != MAX_KEY && to->file->primary_key_is_clustered())
......
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