According to the MySQL manual the "algorithm" for REPLACE attempts to insert the new record, and *while it receives any key violation* on a primary or unique key, it issues a DELETE for that row.
So, in order to keep MYSQL's behaviour, you will need to create DeleteRecord messages until the InsertRecord is finally created I suppose.
According to the MySQL manual the "algorithm" for REPLACE attempts to insert the new record, and *while it receives any key violation* on a primary or unique key, it issues a DELETE for that row.
So, in order to keep MYSQL's behaviour, you will need to create DeleteRecord messages until the InsertRecord is finally created I suppose.