MDEV-21201 fixup: GCC 10.2.0 -Wparentheses

An assertion inadvertently contained an assignment and an implicit
comparison to zero. The intention was to test equality.
This commit is contained in:
Marko Mäkelä 2020-10-29 08:02:33 +02:00
parent dee6902922
commit 1e778a3b56

View file

@ -8688,7 +8688,8 @@ static int optimize_schema_tables_memory_usage(TABLE_LIST *table_list)
{
Field *field= table->field[i];
DBUG_ASSERT(field->vcol_info == 0);
DBUG_ASSERT(from_recinfo->length= field->pack_length_in_rec());
DBUG_ASSERT(from_recinfo->length);
DBUG_ASSERT(from_recinfo->length == field->pack_length_in_rec());
if (bitmap_is_set(table->read_set, i))
{
field->move_field(cur);