MySQL Forums
Forum List  »  Triggers

Re: create trigger statement
Posted by: Peter Brawley
Date: June 13, 2006 09:16AM

So it's homemade merge-synchronisation. A shadow row (2 1 I) indicates that a row referring to device 1 needs to be inserted in main. A row in the user's local table? If so, what's the point of the shadow table echo? Then, "the delete trigger change the action from 'I' to 'D'". Why? And "device 1 look on the server for the changes, he will see that A_id 2 is deleted". Is 'device 1' a user of the application? "He'll try to delete the record in his copy." A trigger can fire only on updates inserts & deletes. "BUT the record never has been inserted in the copy of device 1" You seem to have found holes in your merge synchronisation logic, which is famously difficult to get right. Have you flowcharted this, and worked out all the use case logic? Seems to me you should do that before writing any code at all.

PB



Edited 1 time(s). Last edit at 06/13/2006 11:55AM by Peter Brawley.

Options: ReplyQuote


Subject
Views
Written By
Posted
4434
June 03, 2006 08:37AM
2103
June 09, 2006 05:29PM
2139
June 09, 2006 09:27PM
2062
June 11, 2006 12:27PM
2287
June 11, 2006 10:06PM
2021
June 13, 2006 12:04AM
2136
June 13, 2006 12:05AM
2117
June 13, 2006 06:53AM
2033
June 13, 2006 08:24AM
Re: create trigger statement
2143
June 13, 2006 09:16AM
2262
June 13, 2006 03:42PM
2167
June 13, 2006 07:45PM
2545
June 14, 2006 12:25AM


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.