mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
fix for compiler warning
sql/sql_table.cc: initialize variables used in 'err:' before going to err.
This commit is contained in:
@ -6928,7 +6928,7 @@ copy_data_between_tables(TABLE *from,TABLE *to,
|
|||||||
{
|
{
|
||||||
int error= 1, errpos= 0;
|
int error= 1, errpos= 0;
|
||||||
Copy_field *copy= NULL, *copy_end;
|
Copy_field *copy= NULL, *copy_end;
|
||||||
ulong found_count,delete_count;
|
ulong found_count= 0, delete_count= 0;
|
||||||
THD *thd= current_thd;
|
THD *thd= current_thd;
|
||||||
uint length= 0;
|
uint length= 0;
|
||||||
SORT_FIELD *sortorder;
|
SORT_FIELD *sortorder;
|
||||||
@ -6996,8 +6996,6 @@ copy_data_between_tables(TABLE *from,TABLE *to,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
found_count=delete_count=0;
|
|
||||||
|
|
||||||
if (order)
|
if (order)
|
||||||
{
|
{
|
||||||
if (to->s->primary_key != MAX_KEY && to->file->primary_key_is_clustered())
|
if (to->s->primary_key != MAX_KEY && to->file->primary_key_is_clustered())
|
||||||
|
Reference in New Issue
Block a user