summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2022-04-04 21:39:34 +0200
committerSergei Golubchik <serg@mariadb.org>2022-04-05 13:09:44 +0200
commitcf8d30efd221f58a80261d04642da34635a17595 (patch)
tree7103ca2bec858e15dcb3597f09b0d944e2ebc18a /sql/sql_show.cc
parentd7fd76456e7c7e52b28ee963ba074df73e619df6 (diff)
downloadmariadb-git-cf8d30efd221f58a80261d04642da34635a17595.tar.gz
Revert "MDEV-28131 Unexpected warning while selecting from information_schema.processlist"
This reverts commit 0812d0de8dcb1f76d4a03cea3f20bfa30345b83b. But keeps the test case.
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index 439cad1c858..e1090d450e8 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -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);
}