mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
5.5 merge and fixes for compiler/test errors
This commit is contained in:
commit
4ec2e9d7ed
3617 changed files with 1904330 additions and 85304 deletions
20
mysql-test/suite/rpl/t/last_insert_id.cnf
Normal file
20
mysql-test/suite/rpl/t/last_insert_id.cnf
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
!include suite/rpl/my.cnf
|
||||
|
||||
[mysqld.1]
|
||||
log-slave-updates
|
||||
loose-innodb
|
||||
|
||||
[mysqld.2]
|
||||
log-slave-updates
|
||||
loose-innodb
|
||||
replicate-ignore-table=db.t2
|
||||
|
||||
[mysqld.3]
|
||||
log-slave-updates
|
||||
loose-innodb
|
||||
|
||||
[ENV]
|
||||
SERVER_MYPORT_3= @mysqld.3.port
|
||||
SERVER_MYSOCK_3= @mysqld.3.socket
|
||||
|
||||
|
||||
30
mysql-test/suite/rpl/t/last_insert_id.test
Normal file
30
mysql-test/suite/rpl/t/last_insert_id.test
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
--source include/have_innodb.inc
|
||||
--source include/have_binlog_format_mixed_or_statement.inc
|
||||
--let $rpl_topology=1->2->3
|
||||
--source include/rpl_init.inc
|
||||
|
||||
connection server_1;
|
||||
|
||||
create table t1 (id int not null auto_increment primary key, i int) engine=InnoDB;
|
||||
insert into t1 (i) values (-1);
|
||||
insert into t1 (i) values (LAST_INSERT_ID());
|
||||
select * from t1;
|
||||
|
||||
save_master_pos;
|
||||
|
||||
connection server_2;
|
||||
|
||||
sync_with_master;
|
||||
select * from t1;
|
||||
save_master_pos;
|
||||
|
||||
connection server_3;
|
||||
|
||||
sync_with_master;
|
||||
select * from t1;
|
||||
|
||||
connection server_1;
|
||||
drop table t1;
|
||||
|
||||
--source include/rpl_end.inc
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue