Debian Codegraph @

mysql-test/suite/rpl_nogtid/r/rpl_partition_create_select.result

raw
1 include/master-slave.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection master]
6 #### Create a table using CREATE..SELECT clause #####
7 CREATE TABLE store (store_id INT) PARTITION BY RANGE (store_id) ( PARTITION p0 VALUES LESS THAN (10), PARTITION p1 VALUES LESS THAN (20));
8 include/save_binlog_position.inc
9 INSERT INTO store VALUES (5);
10 INSERT INTO store VALUES (12);
11 include/rpl_partition_info.inc
12 include/save_binlog_position.inc
13 CREATE TABLE emp (m INT) PARTITION BY RANGE (store_id) ( PARTITION p0 VALUES LESS THAN (10), PARTITION p1 VALUES LESS THAN (20))
14 SELECT store_id FROM store;
15 include/rpl_partition_info.inc
16 include/assert.inc [Check that the partition count is same in both tables]
17 include/save_binlog_position.inc
18 INSERT INTO emp values (3, 12);
19 include/rpl_partition_info.inc
20 include/save_binlog_position.inc
21 INSERT INTO emp values (4, 6), (5, 13) ;
22 include/rpl_partition_info.inc
23 DROP TABLE store;
24 DROP TABLE emp;
25 RESET MASTER;
26 include/rpl_end.inc