mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-29242: Assertion `computed_weight == weight' failed SEL_ARG::verify_weight
Make SEL_ARG::make_root() maintain SEL_ARG::weight. Also, an unrelated change: fix dbug_print_sel_arg() to correctly print SQL NULL for the right endpoint.
This commit is contained in:
@ -150,3 +150,12 @@ FROM mysql.help_relation
|
||||
WHERE
|
||||
(help_topic_id < '2' OR help_topic_id != 8 OR help_topic_id < 1) AND
|
||||
help_keyword_id = help_topic_id;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-29242: Assertion `computed_weight == weight' failed SEL_ARG::verify_weight
|
||||
--echo #
|
||||
CREATE TABLE t1 (id INT, KEY (id));
|
||||
INSERT INTO t1 VALUES (1),(5);
|
||||
SELECT id FROM t1 WHERE id IS NULL OR id NOT BETWEEN 1 AND 4;
|
||||
DROP TABLE t1;
|
||||
|
||||
|
Reference in New Issue
Block a user