summaryrefslogtreecommitdiff
path: root/sql/partition_info.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r--sql/partition_info.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc
index 415e6267ef3..3d33cd7b131 100644
--- a/sql/partition_info.cc
+++ b/sql/partition_info.cc
@@ -2206,11 +2206,10 @@ int partition_info::fix_parser_data(THD *thd)
{
part_elem= it++;
List_iterator<part_elem_value> list_val_it(part_elem->list_val_list);
- j= 0;
num_elements= part_elem->list_val_list.elements;
DBUG_ASSERT(part_type == RANGE_PARTITION ?
num_elements == 1U : TRUE);
- do
+ for (j= 0; j < num_elements; j++)
{
part_elem_value *val= list_val_it++;
if (column_list)
@@ -2245,7 +2244,7 @@ int partition_info::fix_parser_data(THD *thd)
list_val_it.remove();
}
}
- } while (++j < num_elements);
+ }
} while (++i < num_parts);
DBUG_RETURN(FALSE);
}