mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
BUG#19309: Crash if double procedural alter
mysql-test/r/partition.result: New test case mysql-test/t/partition.test: New test case sql/sql_table.cc: Added new routine to make copy of create_info struct. This struct is manipulated during alter table and create table but needs to remain the same for repeated execution in stored procedures or prepared statements.
This commit is contained in:
@ -1,5 +1,13 @@
|
||||
drop table if exists t1;
|
||||
create table t1 (a int)
|
||||
partition by list (a)
|
||||
(partition p0 values in (1));
|
||||
create procedure pz()
|
||||
alter table t1 engine = myisam;
|
||||
call pz();
|
||||
call pz();
|
||||
drop table t1;
|
||||
create table t1 (a int)
|
||||
engine = csv
|
||||
partition by list (a)
|
||||
(partition p0 values in (null));
|
||||
|
@ -9,6 +9,20 @@
|
||||
drop table if exists t1;
|
||||
--enable_warnings
|
||||
|
||||
#
|
||||
# Bug 19309 Partitions: Crash if double procedural alter
|
||||
#
|
||||
create table t1 (a int)
|
||||
partition by list (a)
|
||||
(partition p0 values in (1));
|
||||
|
||||
create procedure pz()
|
||||
alter table t1 engine = myisam;
|
||||
|
||||
call pz();
|
||||
call pz();
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug 19307: CSV engine crashes
|
||||
#
|
||||
|
Reference in New Issue
Block a user