1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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

This reverts commit 0812d0de8d.
But keeps the test case.
This commit is contained in:
Sergei Golubchik
2022-04-04 21:39:34 +02:00
parent d7fd76456e
commit cf8d30efd2

View File

@ -3351,16 +3351,6 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
table->field[11]->store((double) tmp->progress.counter /
(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);
}