Thread: Rules and transactions
If I have a rule, is the rule inside a tranaction along with the table that it references. For example, if I have a rule that deletes an entry from table B, whenever an entry in table A gets deleted, then is the delete for table A and table B wrapped inside the same transaction? Same question I guess goes for triggers. thanks, --brett
Brett Schwarz wrote: > If I have a rule, is the rule inside a tranaction along with the table that > it references. For example, if I have a rule that deletes an entry from > table B, whenever an entry in table A gets deleted, then is the delete for > table A and table B wrapped inside the same transaction? > > Same question I guess goes for triggers. Yes and yes. Both solutions are strictly covered by transactions. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com # _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com