[Solved]
Ok after a little testing I found a solution to my problem. My guess is, that mysql has a bug here, but don't have time or enough servers to create test case and confirm as a bug !
1. I changed the destination database ID field into varchar(255) since i only need it for unique identification, not for joins and stuff ..
2. I changed the triggers (update example):
CREATE TRIGGER `data_update` AFTER UPDATE ON `data`
FOR EACH ROW
BEGIN
INSERT INTO my_lonesome_database.tablexyz (id, source, entity, record_id, child_record_id, created, action)
VALUES (CONCAT(RAND(),'-',(UTC_TIMESTAMP() + 0)), DATABASE(),'articles',NEW.id, NULL, NOW(),2);
END$$
note: check CONCAT for unique ID value in destination database table
conclusion: If posible don't use auto_increment for cases like this .. I know I wont !
kind regards
Armando
Subject
Views
Written By
Posted
6326
April 08, 2010 03:35AM
[Solved]
2696
April 09, 2010 02:13AM
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.