Browse Source
MDEV-20800 Server crashes in Field_inet6::store_warning upon updating table statistics
MDEV-20800 Server crashes in Field_inet6::store_warning upon updating table statistics
Suppress warnings when Field_inet6::store() is called from
read_statistics_for_table() and other optimizer related routines.
This patch does for Field_inet6 the same thing with what Monty's
patch previously did for other Field_xxx:
> commit 1bbe8c5e0f
> Author: Michael Widenius <monty@mariadb.org>
> Date: Sun Sep 22 04:08:48 2019 +0300
>
> Proper fix for disabling warnings in read_statistics_for_table().
> MDEV-20589: Server still crashes in Field::set_warning_truncated_wrong_value
Alas, some meaningful warnings disappeared.
10.5-circular-buffer
6 changed files with 40 additions and 31 deletions
-
12plugin/type_inet/mysql-test/type_inet/type_inet6_innodb.result
-
4plugin/type_inet/mysql-test/type_inet/type_inet6_memory.result
-
12plugin/type_inet/mysql-test/type_inet/type_inet6_myisam.result
-
17plugin/type_inet/mysql-test/type_inet/type_inet6_stat_tables.result
-
19plugin/type_inet/mysql-test/type_inet/type_inet6_stat_tables.test
-
7plugin/type_inet/sql_type_inet.cc
@ -0,0 +1,17 @@ |
|||
# |
|||
# Start of 10.5 tests |
|||
# |
|||
# |
|||
# MDEV-20800 Server crashes in Field_inet6::store_warning upon updating table statistics |
|||
# |
|||
CREATE TABLE t1 (a INET6); |
|||
INSERT INTO t1 VALUES ('1::1'),('2::2'); |
|||
ANALYZE TABLE t1 PERSISTENT FOR ALL; |
|||
Table Op Msg_type Msg_text |
|||
test.t1 analyze status Engine-independent statistics collected |
|||
test.t1 analyze status OK |
|||
INSERT INTO t1 VALUES ('3::3'); |
|||
DROP TABLE t1; |
|||
# |
|||
# End of 10.5 tests |
|||
# |
|||
@ -0,0 +1,19 @@ |
|||
--source include/have_stat_tables.inc |
|||
|
|||
--echo # |
|||
--echo # Start of 10.5 tests |
|||
--echo # |
|||
|
|||
--echo # |
|||
--echo # MDEV-20800 Server crashes in Field_inet6::store_warning upon updating table statistics |
|||
--echo # |
|||
|
|||
CREATE TABLE t1 (a INET6); |
|||
INSERT INTO t1 VALUES ('1::1'),('2::2'); |
|||
ANALYZE TABLE t1 PERSISTENT FOR ALL; |
|||
INSERT INTO t1 VALUES ('3::3'); |
|||
DROP TABLE t1; |
|||
|
|||
--echo # |
|||
--echo # End of 10.5 tests |
|||
--echo # |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue