Commit 1e778a3b authored by Marko Mäkelä's avatar Marko Mäkelä

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.
parent dee69029
......@@ -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);
......
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