mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-22058: Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed in Diagnostics_area::set_ok_status
Error state is not stored in check_and_do_in_subquery_rewrites() when there is illegal combination of optimizer switches. So all the functions eventually return false. Thus the assetion failure.
This commit is contained in:
@ -2872,3 +2872,16 @@ SELECT @msg;
|
||||
DROP FUNCTION f1;
|
||||
DROP FUNCTION f2;
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# 10.2 Test
|
||||
#
|
||||
# MDEV-MDEV-22058: Assertion `!is_set() || (m_status == DA_OK_BULK &&
|
||||
# is_bulk_op())' failed in Diagnostics_area::set_ok_status
|
||||
#
|
||||
SET @old_optimizer_switch = @@SESSION.OPTIMIZER_SWITCH;
|
||||
SET @cmd:="SET @@SESSION.SQL_MODE=(SELECT 'a')";
|
||||
SET @@SESSION.OPTIMIZER_SWITCH="in_to_exists=OFF,materialization=OFF";
|
||||
ERROR HY000: At least one of the 'in_to_exists' or 'materialization' optimizer_switch flags must be 'on'
|
||||
PREPARE stmt FROM @cmd;
|
||||
set @@SESSION.OPTIMIZER_SWITCH=@old_optimizer_switch;
|
||||
# End of 10.2 Test
|
||||
|
Reference in New Issue
Block a user