1
0
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:
unknown
2006-06-15 14:03:17 -04:00
parent 23e20da872
commit ae90c20278
3 changed files with 59 additions and 2 deletions

View File

@ -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));

View File

@ -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
#