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.
Robert Ogren — — source: Informix-list mailing list archive (1991-1998)
Question:
This is more than likely a simple one but I am not seeing what would be
causing this not to work.
create procedure er_raise_error(laerrId int, laerrMsg char(255))
raise exception laerrId,0,laerrMsg;201: A Syntax error occurred ^end procedure;
In a trigger I call the above Procedure.
Example:
execute procedure er_raise_error(-20012,'tblInvDelTrig: Cannot delete
because foreign keys still exist in tblRacktblInv ')
I have permission to create procedures in the DB.
Any help is appreciated.
Thanks
Rob
rmogren@gte.net
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.