Re: [SQL] Rule problem with OLD / NEW record set

2005-02-07 Thread Christoph Haller
Ralph Graulich wrote: > > Hello everyone, > > given is a table with a version history kind of thing I am currently > working on. Upon this table there is a view and the application interacts > with the view only, updating/inserting/deleting is controlled by rules. It > seems like the record set "

[SQL] Rule problem with OLD / NEW record set

2005-01-26 Thread Ralph Graulich
Hello everyone, given is a table with a version history kind of thing I am currently working on. Upon this table there is a view and the application interacts with the view only, updating/inserting/deleting is controlled by rules. It seems like the record set "OLD" gets changed when it is used i

Re: [SQL] Rule problem

2002-06-13 Thread Tom Lane
Svenn Helge Grindhaug <[EMAIL PROTECTED]> writes: > create rule a_delete as > on delete to a do > delete from b where id1 = old.id1; > create rule c_delete as > on delete to c do > delete from a where id1 = (select id1 from b where id2 = old.id2); The a_delete rule is run before the actual "DELE