Skip to content

Commit b962338

Browse files
MDEV-8652: Partitioned table creation problem when creating from procedure context twice in same session
The problem was solved in in MDEV-7990, this commit contains only test
1 parent 8b15d0d commit b962338

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

mysql-test/r/partition_sp.result

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# MDEV-8652: Partitioned table creation problem when
3+
# creating from procedure context twice in same session
4+
#
5+
CREATE PROCEDURE p1()
6+
BEGIN
7+
DROP TABLE IF EXISTS t1 ;
8+
CREATE TABLE t1 (
9+
id INT PRIMARY KEY
10+
)
11+
PARTITION BY RANGE (id) (
12+
PARTITION P1 VALUES LESS THAN (2),
13+
PARTITION P2 VALUES LESS THAN (3)
14+
);
15+
END |
16+
call p1();
17+
call p1();
18+
drop procedure p1;
19+
drop table t1;
20+
#
21+
# End of 10.2 tests
22+
#

mysql-test/t/partition_sp.test

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
--source include/have_partition.inc
2+
3+
--echo #
4+
--echo # MDEV-8652: Partitioned table creation problem when
5+
--echo # creating from procedure context twice in same session
6+
--echo #
7+
8+
9+
DELIMITER |;
10+
11+
CREATE PROCEDURE p1()
12+
BEGIN
13+
DROP TABLE IF EXISTS t1 ;
14+
15+
CREATE TABLE t1 (
16+
id INT PRIMARY KEY
17+
)
18+
PARTITION BY RANGE (id) (
19+
PARTITION P1 VALUES LESS THAN (2),
20+
PARTITION P2 VALUES LESS THAN (3)
21+
);
22+
END |
23+
24+
DELIMITER ;|
25+
26+
call p1();
27+
call p1();
28+
29+
drop procedure p1;
30+
drop table t1;
31+
32+
--echo #
33+
--echo # End of 10.2 tests
34+
--echo #
35+

0 commit comments

Comments
 (0)