Debian Codegraph @

mysql-test/suite/group_replication/r/gr_range_partition_tables.result

raw
1 include/group_replication.inc [rpl_server_count=3]
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 server1]
6 [connection server1]
7 ## Range Partitioning ##
8 CREATE TABLE t1 (id int PRIMARY KEY, vc VARCHAR(255),
9 t DATE)
10 CHARSET=utf8mb4
11 PARTITION BY RANGE (id)
12 (PARTITION p1 VALUES LESS THAN (5),
13 PARTITION p2 VALUES LESS THAN (10),
14 PARTITION p3 VALUES LESS THAN (15),
15 PARTITION p4 VALUES LESS THAN MAXVALUE);
16 include/rpl_sync.inc
17 [connection server2]
18 SHOW CREATE TABLE t1;
19 Table Create Table
20 t1 CREATE TABLE `t1` (
21 `id` int NOT NULL,
22 `vc` varchar(255) DEFAULT NULL,
23 `t` date DEFAULT NULL,
24 PRIMARY KEY (`id`)
25 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
26 /*!50100 PARTITION BY RANGE (`id`)
27 (PARTITION p1 VALUES LESS THAN (5) ENGINE = InnoDB,
28 PARTITION p2 VALUES LESS THAN (10) ENGINE = InnoDB,
29 PARTITION p3 VALUES LESS THAN (15) ENGINE = InnoDB,
30 PARTITION p4 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */
31 INSERT INTO t1 VALUES (01, 'test partioning of tables', '2013-03-01');
32 INSERT INTO t1 VALUES (10, 'test partioning of tables', '2012-12-10');
33 INSERT INTO t1 VALUES (12, 'test partioning of tables', '2011-11-13');
34 INSERT INTO t1 VALUES (100, 'test partioning of tables', '2011-10-13');
35 include/rpl_sync.inc
36 [connection server3]
37 SHOW CREATE TABLE t1;
38 Table Create Table
39 t1 CREATE TABLE `t1` (
40 `id` int NOT NULL,
41 `vc` varchar(255) DEFAULT NULL,
42 `t` date DEFAULT NULL,
43 PRIMARY KEY (`id`)
44 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
45 /*!50100 PARTITION BY RANGE (`id`)
46 (PARTITION p1 VALUES LESS THAN (5) ENGINE = InnoDB,
47 PARTITION p2 VALUES LESS THAN (10) ENGINE = InnoDB,
48 PARTITION p3 VALUES LESS THAN (15) ENGINE = InnoDB,
49 PARTITION p4 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */
50 include/assert.inc ['Check that partition p1 on table t1 has 1 row']
51 include/assert.inc ['Check that partition p2 on table t1 has 0 rows']
52 include/assert.inc ['Check that partition p3 on table t1 has 2 rows']
53 include/assert.inc ['Check that partition p4 on table t1 has 1 row']
54 DELETE FROM t1 WHERE id=12;
55 INSERT INTO t1 values (7, 'test partioning of tables', '2016-08-15');
56 include/rpl_sync.inc
57 [connection server1]
58 SHOW CREATE TABLE t1;
59 Table Create Table
60 t1 CREATE TABLE `t1` (
61 `id` int NOT NULL,
62 `vc` varchar(255) DEFAULT NULL,
63 `t` date DEFAULT NULL,
64 PRIMARY KEY (`id`)
65 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
66 /*!50100 PARTITION BY RANGE (`id`)
67 (PARTITION p1 VALUES LESS THAN (5) ENGINE = InnoDB,
68 PARTITION p2 VALUES LESS THAN (10) ENGINE = InnoDB,
69 PARTITION p3 VALUES LESS THAN (15) ENGINE = InnoDB,
70 PARTITION p4 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */
71 include/assert.inc ['Check that partition p1 on table t1 has 1 row']
72 include/assert.inc ['Check that partition p2 on table t1 has 1 row']
73 include/assert.inc ['Check that partition p3 on table t1 has 1 row']
74 include/assert.inc ['Check that partition p4 on table t1 has 1 row']
75 DROP TABLE t1;
76 include/rpl_sync.inc
77 include/group_replication_end.inc