mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-24739: Assertion `root->weight >= ...' failed in SEL_ARG::tree_delete
Also update the SEL_ARG graph weight in: - sel_add() - SEL_ARG::clone() Make key_{and,or}_with_limit() to also verify weight for the arguments (There is no single point to verify SEL_ARG graphs constructed from conditions that are not AND-OR formulas, so we hope that those are connected with AND/OR and do it here).
This commit is contained in:
@ -96,4 +96,17 @@ select left(@json, 1500);
|
||||
|
||||
set optimizer_max_sel_arg_weight= @tmp9750_weight;
|
||||
set optimizer_trace=@tmp_9750;
|
||||
|
||||
drop table t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-24739: Assertion `root->weight >= ...' failed in SEL_ARG::tree_delete
|
||||
--echo #
|
||||
SELECT *
|
||||
FROM mysql.help_relation
|
||||
WHERE NOT (help_topic_id != 8 AND help_keyword_id != 0 OR help_keyword_id = 2 OR help_topic_id < 1900);
|
||||
|
||||
SELECT *
|
||||
FROM mysql.help_relation ignore index (help_topic_id)
|
||||
WHERE (help_topic_id = 8 OR help_keyword_id = 0) AND help_keyword_id != 2 AND help_topic_id >= 1900;
|
||||
|
||||
|
Reference in New Issue
Block a user