Revert accidentally pushed: commit e8c9cdc2f85d3d5c096f8af48216488fd304bc07

Author: Sergei Petrunia <sergey@mariadb.com>
Date:   Wed Oct 11 19:02:25 2023 +0300

    MDEV-32301: Server crashes at Arg_comparator::compare_row

    In  Item_bool_rowready_func2::build_clone(): if we're setting
      clone->cmp.comparators=0
    also set
      const_item_cache=0
    as the Item is currently in a state where one cannot compute it.
This commit is contained in:
Sergei Petrunia 2023-10-16 18:47:24 +03:00
parent 208ed0d8c6
commit 0ca699bff7
3 changed files with 0 additions and 22 deletions

View File

@ -18442,15 +18442,4 @@ a SUBQ
4 1=11373
5 1=11612
drop table t1,t2,t3;
#
# MDEV-32301: Server crashes at Arg_comparator::compare_row
#
SELECT * FROM ( SELECT 1 x ) ss
WHERE
x AND x OR ( ( x , x , x ) <= ( x , x , x ) )
GROUP BY
x
HAVING ( ( x = 1 ) ) ;
x
1
# End of 10.4 tests

View File

@ -4013,14 +4013,4 @@ eval $q;
drop table t1,t2,t3;
--echo #
--echo # MDEV-32301: Server crashes at Arg_comparator::compare_row
--echo #
SELECT * FROM ( SELECT 1 x ) ss
WHERE
x AND x OR ( ( x , x , x ) <= ( x , x , x ) )
GROUP BY
x
HAVING ( ( x = 1 ) ) ;
--echo # End of 10.4 tests

View File

@ -559,7 +559,6 @@ public:
if (clone)
{
clone->cmp.comparators= 0;
clone->const_item_cache= 0;
}
return clone;
}