error 747
Posted in 2000
Topics: Triggers, Constraints & Referential Integrity, Platform-Specific Issues, Versions, Editions & End-of-Life
Hi all! I need delete a record using triggers and stored procedures. When other system insert a record in a table, an inserting trigger is executed; several things must be relized using this trigger, and then the record inserted at the begining must be deleted. When I try to delete it, Informix returns error 747, and deleting operation cannot be executed. My system is IDS 7.24.UC7 with HP-UX 10.20 Thanks. Sent via Deja.com http://www.deja.com/ Before you buy.
Hi,
mgimbert8769@my-deja.com wrote:
>
> Hi all!
>
> I need delete a record using triggers and stored
> procedures. When other system insert a record in a table, an inserting
> trigger is executed; several things must be relized using this trigger,
> and then the record inserted at the begining must be deleted. When I try
> to delete it, Informix returns error 747, and deleting operation cannot
> be executed.
>
Ok, you will do that
insert into table a
-> trigger _mytrigger
_mytrigger()
insert into table b
delete from table a
correct?
If so, this is not supported! You can not modify your triggered table
by itself. Have a look to finderr -747:
"This error is returned when a triggered SQL statement acts on the
triggering table ....."
Wile
Sounds like you are trying to delete the triggering row, that is not allowed. mgimbert8769@my-deja.com wrote: > > Hi all! > > I need delete a record using triggers and stored > procedures. When other system insert a record in a table, an inserting > trigger is executed; several things must be relized using this trigger, > and then the record inserted at the begining must be deleted. When I try > to delete it, Informix returns error 747, and deleting operation cannot > be executed. > > My system is IDS 7.24.UC7 with HP-UX 10.20 > > Thanks. > > Sent via Deja.com http://www.deja.com/ > Before you buy. -- Paul Watson # WF Software Ltd # You are only young once Tel: +44 1436 674729 # but you can be immature Fax: +44 1436 678693 # for ever www.wfsoftware.com #