Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
belakimem@aol.com — — source: Informix-list mailing list archive (1991-1998)
Version : RSAM Version 7.10.UC1
I get the following error when I perform the update below. Yet, the manual
suggests it is OK to perform updates on the same table in pudate triggers
as
long as you don't update columns referenced in the original update?
-747 Table or column matches object referenced in triggering
statement.
This error is returned when a triggered SQL statement acts
on the triggering table, or when both statements are updates
and the column being updated in the triggered action is the
same as the column being updated by the triggering
statement.
Potential responders, please reply to my email address as well as the
Newsgroup. Thank You.
The Update
----------
update my_table set a=27 where a=1;
The Table
---------
{ TABLE my_table row size = 4 number of columns = 2 index size = 0 }
create table my_table
(
a smallint,
b smallint
default 0
);
The Trigger
-----------
create trigger t1 update on my_table before
(
update my_table set my_table.b = 999 );
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.