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.
Gokhan Tercan — — source: Informix-list mailing list archive (1991-1998)
Tony Edwards wrote:
>
> Hi,
>
> One of the developers at work came to me this one but I'm not an
> SPL/trigger guru so I thought I would ask you lot...
>
> We have the following
>
> table aaaa
> some id#
> first name
> last name
> searchname
>
> trigger on insert into aaaa
> call buildsearchname spl (some id, first name, last name)
>
> procedure buildsearchname
> update searchname in aaaa
> where someid = someid_arg
>
> When an insert hits the table we get error 747, which I can understand. I
> thought the INTO variable statement in execute procedure would be the way
> but this is only available for an update trigger:(
>
You cannot reference the triggering table in any triggerd SQL
statement. There is an exception with UPDATE. Updated columns must be
mutually excluded.
> So people if you can think of any other way than the application calling
> the stored procedure before the insert please reply...
>
> Thank you in advance.
> Cheers, Tony.
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.