Commit cf8d30ef authored by Sergei Golubchik's avatar Sergei Golubchik

Revert "MDEV-28131 Unexpected warning while selecting from information_schema.processlist"

This reverts commit 0812d0de.
But keeps the test case.
parent d7fd7645
...@@ -3351,16 +3351,6 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond) ...@@ -3351,16 +3351,6 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
table->field[11]->store((double) tmp->progress.counter / table->field[11]->store((double) tmp->progress.counter /
(double) max_counter*100.0); (double) max_counter*100.0);
} }
else
{
/*
This is a DECIMAL column without DEFAULT.
restore_record() fills its Field::ptr to zero bytes,
according to pack_length(). But an array of zero bytes
is not a valid decimal. Set it explicitly to 0.
*/
table->field[11]->store((longlong) 0, true);
}
mysql_mutex_unlock(&tmp->LOCK_thd_data); mysql_mutex_unlock(&tmp->LOCK_thd_data);
} }
......
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