mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
3cd706b107
Post-fix for MDEV-35144.
Cannot allocate options values on the statement arena, because
HA_CREATE_INFO is shallow-copied for every execution, so if the
option_list was initially empty, it will be reset for every execution
and any values allocated on the statement arena will be lost.
Cannot allocate option values on the execution arena, because
HA_CREATE_INFO is shallow-copied for every execution, so if the
option_list was initially NOT empty, any values appended to the
end will be preserved and if they're on the execution arena their
content will be destroyed.
Let's use thd->change_item_tree() to save and restore necessary pointers
for every execution.
followup for 3da565c41d
20 lines
569 B
Text
20 lines
569 B
Text
connect con1, localhost, root,,;
|
|
connection default;
|
|
CREATE TABLE t1 ENGINE=InnoDB SELECT * FROM seq_1_to_100000000;
|
|
connection con1;
|
|
KILL QUERY @id;
|
|
disconnect con1;
|
|
connection default;
|
|
ERROR 70100: Query execution was interrupted
|
|
CREATE TABLE t1 (a SERIAL) ENGINE=InnoDB;
|
|
DROP TABLE t1;
|
|
# End of 10.2 tests
|
|
#
|
|
# MDEV-35236 Assertion `(mem_root->flags & 4) == 0' failed in safe_lexcstrdup_root
|
|
#
|
|
prepare stmt from 'create or replace table t engine=innodb select 1 as f';
|
|
set innodb_compression_default=on;
|
|
execute stmt;
|
|
execute stmt;
|
|
drop table t;
|
|
# End of 10.5 tests
|