Re: Unsafe statement written to the binary log
Posted by:
Rick James
Date: April 02, 2012 11:43PM
The SQL needs changing; the 'problem' cannot be solved without access to the code.
OTOH, these _usually_ are not serious problems. Usually a SELECT without an ORDER BY will perform the same on the Slave as on the Master.
Here's an example where it does not matter:
loop ...
DELETE FROM tbl WHERE ts < CURRENT_DATE() - INTERVAL 1 DAY LIMIT 1000;
... end loop
That will delete all the old rows, and it does not matter if they are deleted in a different order.
Subject
Views
Written By
Posted
9161
March 23, 2012 02:47AM
3719
March 23, 2012 07:41AM
3569
March 23, 2012 07:43AM
3365
March 25, 2012 03:15PM
4223
March 26, 2012 07:32AM
4411
March 27, 2012 08:43PM
2951
April 02, 2012 04:15AM
Re: Unsafe statement written to the binary log
2819
April 02, 2012 11:43PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.