summaryrefslogtreecommitdiff
path: root/mysql-test/main/range_notembedded.result
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2021-03-17 16:51:56 +0300
committerSergei Petrunia <psergey@askmonty.org>2021-03-17 20:59:30 +0300
commit9c7bd4f283b5d866e08566a3ffb6954413b0513f (patch)
tree2da998075b351af390b03d49d48cc7ab169df56d /mysql-test/main/range_notembedded.result
parent7e3806ce24d81933c18ae37f8817a10c48d7c603 (diff)
downloadmariadb-git-9c7bd4f283b5d866e08566a3ffb6954413b0513f.tar.gz
MDEV-25069: Assertion `root->weight >= ...' failed in SEL_ARG::tree_delete #2
Note they key_or() may call tree_delete(), which will cause the weight asserts to be checked. In order to avoid them from firing, update key1 tree's weight after we've changed key1->some_local_child->next_key_part. Having done that, do we still need this at the function end: /* Re-compute the result tree's weight. */ key1->update_weight_locally(); ?
Diffstat (limited to 'mysql-test/main/range_notembedded.result')
-rw-r--r--mysql-test/main/range_notembedded.result9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/main/range_notembedded.result b/mysql-test/main/range_notembedded.result
index 0ecf47c892e..eeab230e72f 100644
--- a/mysql-test/main/range_notembedded.result
+++ b/mysql-test/main/range_notembedded.result
@@ -239,3 +239,12 @@ insert into t1 values (1,1,1,1), (2,2,2,2), (3,3,3,3);
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range PRIMARY PRIMARY 2 NULL 3 Using where
drop table t1;
+#
+# MDEV-25069: Assertion `root->weight >= ...' failed in SEL_ARG::tree_delete #2
+#
+SELECT *
+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;
+help_topic_id help_keyword_id