mysql-test/suite/rpl/r/last_insert_id.result
raw| 1 | include/rpl_init.inc [topology=1->2->3] |
| 2 | connection server_1; |
| 3 | create table t1 (id int not null auto_increment primary key, i int) engine=InnoDB; |
| 4 | insert into t1 (i) values (-1); |
| 5 | insert into t1 (i) values (LAST_INSERT_ID()); |
| 6 | select * from t1; |
| 7 | id i |
| 8 | 1 -1 |
| 9 | 2 1 |
| 10 | connection server_2; |
| 11 | select * from t1; |
| 12 | id i |
| 13 | 1 -1 |
| 14 | 2 1 |
| 15 | connection server_3; |
| 16 | select * from t1; |
| 17 | id i |
| 18 | 1 -1 |
| 19 | 2 1 |
| 20 | connection server_1; |
| 21 | drop table t1; |
| 22 | include/rpl_end.inc |