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.
Phuoc Ho — — source: Informix-list mailing list archive (1991-1998)
In an effort to monitor dates entered into the database I wrote a
trigger and procedure to check and correct bad dates. I am
encountering error -747 (Table or column matches object referenced
in triggering statement). It did not make sense to me that you can
not modify the same field that the user is trying to insert or update
in a trigger. Can anyone please let me know if there is a way around
this problem.
thanks in advance.
example:
create trigger npsusers_upd_trupdate on nps_users
referencing old as pre new as post
for each row (execute procedure check_correct(post.date_last_chg)
into date_last_chg);
*** procedure check_correct modifies the date passed to it
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.