1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

fix for compiler warning

sql/sql_table.cc:
  initialize variables used in 'err:' before going to err.
This commit is contained in:
unknown
2008-01-21 18:51:30 +01:00
parent d66157e30f
commit fd74a0da30

View File

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