mariadb/mysql-test/suite/galera/r/galera_as_slave_autoinc.result
Marko Mäkelä a36c369bda Merge 10.1 into 10.2
For running the Galera tests, the variable my_disable_leak_check
was set to true in order to avoid assertions due to memory leaks
at shutdown.

Some adjustments due to MDEV-13625 (merge InnoDB tests from MySQL 5.6)
were performed. The most notable behaviour changes from 10.0 and 10.1
are the following:

* innodb.innodb-table-online: adjustments for the DROP COLUMN
behaviour change (MDEV-11114, MDEV-13613)

* innodb.innodb-index-online-fk: the removal of a (1,NULL) record
from the result; originally removed in MySQL 5.7 in the
Oracle Bug #16244691 fix
377774689b

* innodb.create-index-debug: disabled due to MDEV-13680
(the MySQL Bug #77497 fix was not merged from 5.6 to 5.7.10)

* innodb.innodb-alter-autoinc: MariaDB 10.2 behaves like MySQL 5.6/5.7,
while MariaDB 10.0 and 10.1 assign different values when
auto_increment_increment or auto_increment_offset are used.
Also MySQL 5.6/5.7 exhibit different behaviour between
LGORITHM=INPLACE and ALGORITHM=COPY, so something needs to be tested
and fixed in both MariaDB 10.0 and 10.2.

* innodb.innodb-wl5980-alter: disabled because it would trigger an
InnoDB assertion failure (MDEV-13668 may need additional effort in 10.2)
2017-08-31 09:30:40 +03:00

88 lines
1.8 KiB
Text

connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
connection node_2;
START SLAVE;
connection node_1;
SET SESSION binlog_format='STATEMENT';
CREATE TABLE t1 (
i int(11) NOT NULL AUTO_INCREMENT,
c char(32) DEFAULT 'dummy_text',
PRIMARY KEY (i)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
insert into t1(i) values(null);
select * from t1;
i c
1 dummy_text
insert into t1(i) values(null), (null), (null);
select * from t1;
i c
1 dummy_text
2 dummy_text
3 dummy_text
4 dummy_text
SET SESSION auto_increment_increment=7;
insert into t1(i) values(null), (null), (null);
SET SESSION auto_increment_offset=5;
insert into t1(i) values(null), (null), (null);
select * from t1;
i c
1 dummy_text
2 dummy_text
3 dummy_text
4 dummy_text
8 dummy_text
15 dummy_text
22 dummy_text
33 dummy_text
40 dummy_text
47 dummy_text
show variables like 'binlog_format';
Variable_name Value
binlog_format STATEMENT
show variables like 'auto_increment_increment';
Variable_name Value
auto_increment_increment 7
connection node_2;
select * from t1;
i c
1 dummy_text
2 dummy_text
3 dummy_text
4 dummy_text
8 dummy_text
15 dummy_text
22 dummy_text
33 dummy_text
40 dummy_text
47 dummy_text
show variables like 'binlog_format';
Variable_name Value
binlog_format ROW
show variables like 'auto_increment_increment';
Variable_name Value
auto_increment_increment 2
connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3;
select * from t1;
i c
1 dummy_text
2 dummy_text
3 dummy_text
4 dummy_text
8 dummy_text
15 dummy_text
22 dummy_text
33 dummy_text
40 dummy_text
47 dummy_text
show variables like 'binlog_format';
Variable_name Value
binlog_format ROW
show variables like 'auto_increment_increment';
Variable_name Value
auto_increment_increment 2
connection node_1;
DROP TABLE t1;
connection node_2;
STOP SLAVE;
RESET SLAVE ALL;
connection node_1;
RESET MASTER;