File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change
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
+ #
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments