mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 20:11:42 +01:00
37316bea5a
added Monty's patch for alter table and LAST_INSERT_ID() added a test case for replication of ALTER TABLE on a table with auto_increment
11 lines
No EOL
410 B
Text
11 lines
No EOL
410 B
Text
source ../include/master-slave.inc;
|
|
connection master;
|
|
drop table if exists test;
|
|
CREATE TABLE test (name varchar(64), age smallint(3));
|
|
INSERT INTO test SET name='Andy', age=31;
|
|
INSERT test SET name='Jacob', age=2;
|
|
INSERT into test SET name='Caleb', age=1;
|
|
ALTER TABLE test ADD id int(8) ZEROFILL AUTO_INCREMENT PRIMARY KEY;
|
|
@test.master select * from test;
|
|
connection slave;
|
|
@test.master select * from test; |