Commit 1db571f7 authored by Elena Stepanova's avatar Elena Stepanova

MDEV-33622 Server crashes when the UPDATE statement (which has duplicate key)...

MDEV-33622 Server crashes when the UPDATE statement (which has duplicate key) is run after setting a low thread_stack

Added the missing test case
parent 15b607b5
call mtr.add_suppression("option 'thread_stack': unsigned value 131072 adjusted to");
CREATE TABLE t (a INT KEY) ENGINE=InnoDB;
INSERT INTO t VALUES (1),(2);
UPDATE t SET a=2;
ERROR 23000: Duplicate entry '2' for key 'PRIMARY'
DROP TABLE t;
# These require a bigger thread stack
--source include/not_asan.inc
--source include/not_ubsan.inc
--source include/not_msan.inc
--source include/not_windows.inc
--source include/have_innodb.inc
# Just in case on some systems 131072 (which is usually allowed) does not work
call mtr.add_suppression("option 'thread_stack': unsigned value 131072 adjusted to");
CREATE TABLE t (a INT KEY) ENGINE=InnoDB;
INSERT INTO t VALUES (1),(2);
--error ER_DUP_ENTRY
UPDATE t SET a=2;
DROP TABLE t;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment