blob: ecb62e04fad85f0b0bbcbff6b24d5c8736a18ec4 (
plain)
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
|
# MDEV-11675
# Prove that "fast" ALTER options also combine with @@binlog_alter_two_phase.
--source include/have_innodb.inc
--source include/master-slave.inc
--connection master
set binlog_alter_two_phase=true;
CREATE OR REPLACE TABLE tab (
a int PRIMARY KEY,
b varchar(50),
c varchar(50)
) CHARACTER SET=latin1 engine=innodb;
SET SESSION alter_algorithm='INSTANT';
ALTER TABLE tab MODIFY COLUMN b varchar(100);
SET SESSION alter_algorithm='NOCOPY';
ALTER TABLE tab MODIFY COLUMN c varchar(100);
SHOW CREATE TABLE tab;
--source include/show_binlog_events.inc
--sync_slave_with_master
SHOW CREATE TABLE tab;
--source include/show_binlog_events.inc
--connection master
DROP TABLE tab;
--sync_slave_with_master
--source include/rpl_end.inc
|