On Fri, May 03, 2002 at 11:46:42AM -0600, Sasha Pachev wrote: > On Wednesday 01 May 2002 11:34 pm, Jeremy Zawodny wrote: > > After even more tracking stuff down, I managed to isolate it to a > > change made in MySQL 4.0.1. ?The query in question was doing: > > > > ? INSERT INTO ... SELECT ... > > > > rather than > > > > ? INSERT IGNORE INTO ... SELECT ... > > > > MySQL 3.23.xx lets the first sneak by without errors even if there are > > duplicates. ?4.0.2 does not. ?It stops. ?Since our master is 3.23 and > > this particular slave is 4.0.2, the two didn't agree. > > That would be a bug in 4.0.2. Can you provide a test case for it?
Sure. If you run this set of queries on a MySQL 3.23.xx master which has a 4.0.2 slave, it'll work on the master but kill replication on the slave: ---snip--- CREATE TABLE dirty ( id int not null primary key ); CREATE TABLE archive ( id int not null primary key ); INSERT INTO archive (id) VALUES (1), (2), (3), (4), (5); INSERT INTO dirty SELECT * FROM archive; INSERT INTO dirty SELECT * FROM archive; ---snip--- The last query is the killer. If it is changed to: INSERT IGNORE INTO dirty SELECT * FROM archive; It'll work fine, as I mentioned. Let me know if you need more data. Jeremy -- Jeremy D. Zawodny, <[EMAIL PROTECTED]> Technical Yahoo - Yahoo Finance Desk: (408) 349-7878 Fax: (408) 349-5454 Cell: (408) 685-5936 MySQL 3.23.47-max: up 85 days, processed 2,208,494,219 queries (300/sec. avg) --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php