File: rpl_alter_convert_partition.result

package info (click to toggle)
mariadb 1%3A11.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 772,520 kB
  • sloc: ansic: 2,414,714; cpp: 1,791,394; asm: 381,336; perl: 62,905; sh: 49,647; pascal: 40,897; java: 39,363; python: 20,791; yacc: 20,432; sql: 17,907; xml: 12,344; ruby: 8,544; cs: 6,542; makefile: 6,145; ada: 1,879; lex: 1,193; javascript: 996; objc: 80; tcl: 73; awk: 46; php: 22
file content (80 lines) | stat: -rw-r--r-- 2,687 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
include/master-slave.inc
[connection master]
#
# Ensure initial CREATE TABLE with partitioned data is replicated
# correctly
connection master;
create table t (a int, b int, key(a)) engine=innodb partition by range (b) (partition p1 values less than (10), partition pn values less than (maxvalue));
insert into t values (1,5),(2,100);
include/save_master_gtid.inc
connection slave;
include/sync_with_master_gtid.inc
include/diff_tables.inc [master:test.t,slave:test.t]
#
# Ensure ALTER TABLE .. CONVERT PARTITION .. TO TABLE replicates
# correctly
connection master;
alter table t convert partition p1 to table offspring;
include/save_master_gtid.inc
connection slave;
include/sync_with_master_gtid.inc
include/diff_tables.inc [master:test.t,slave:test.t]
include/diff_tables.inc [master:test.offspring,slave:test.offspring]
#
# Ensure data can be inserted into existing table after
# ALTER TABLE .. CONVERT PARTITION .. TO TABLE
connection master;
insert into t values (3, 6);
include/save_master_gtid.inc
connection slave;
include/sync_with_master_gtid.inc
include/diff_tables.inc [master:test.t,slave:test.t]
#
# Ensure data can be inserted into offspring table after
# ALTER TABLE .. CONVERT PARTITION .. TO TABLE
connection master;
insert into offspring values (4, 101);
include/save_master_gtid.inc
connection slave;
include/sync_with_master_gtid.inc
include/diff_tables.inc [master:test.offspring,slave:test.offspring]
#
# Ensure data can be updated in existing table after
# ALTER TABLE .. CONVERT PARTITION .. TO TABLE
connection master;
update t set b=b+1 where a=3;
include/save_master_gtid.inc
connection slave;
include/sync_with_master_gtid.inc
include/diff_tables.inc [master:test.t,slave:test.t]
#
# Ensure data can be updated in offspring table after
# ALTER TABLE .. CONVERT PARTITION .. TO TABLE
connection master;
update offspring set b=b+1 where a=4;
include/save_master_gtid.inc
connection slave;
include/sync_with_master_gtid.inc
include/diff_tables.inc [master:test.offspring,slave:test.offspring]
#
# Ensure data can be deleted in existing table after
# ALTER TABLE .. CONVERT PARTITION .. TO TABLE
connection master;
delete from t;
include/save_master_gtid.inc
connection slave;
include/sync_with_master_gtid.inc
include/diff_tables.inc [master:test.t,slave:test.t]
#
# Ensure data can be deleted in offspring table after
# ALTER TABLE .. CONVERT PARTITION .. TO TABLE
connection master;
delete from offspring;
include/save_master_gtid.inc
connection slave;
include/sync_with_master_gtid.inc
include/diff_tables.inc [master:test.offspring,slave:test.offspring]
connection master;
drop table t, offspring;
include/rpl_end.inc
# End of rpl_alter_convert_partition