Hi,
I have a trigger as an example, forcing an exception:
CREATE OR REPLACE TRIGGER SCH.trigger_salvar_cadnl1
BEFORE INSERT ON SCH.CADNL1
REFERENCING NEW AS NEW_CADNL1
FOR EACH ROW
BEGIN
SIGNAL SQLSTATE 'Z0001' ('Value Incorrect');
END
But when you insert a record into the table, I have the error code:
Error Code: -723, SQL State: 09000] [SQL0723] SQL trigger TRIGGER_SALVAR_CADNL1 in SCH failed with SQLCODE -438 SQLSTATE Z0001.
Why not get the message that was executed in sqlstate ('Value Incorrect')?
I have a trigger as an example, forcing an exception:
CREATE OR REPLACE TRIGGER SCH.trigger_salvar_cadnl1
BEFORE INSERT ON SCH.CADNL1
REFERENCING NEW AS NEW_CADNL1
FOR EACH ROW
BEGIN
SIGNAL SQLSTATE 'Z0001' ('Value Incorrect');
END
But when you insert a record into the table, I have the error code:
Error Code: -723, SQL State: 09000] [SQL0723] SQL trigger TRIGGER_SALVAR_CADNL1 in SCH failed with SQLCODE -438 SQLSTATE Z0001.
Why not get the message that was executed in sqlstate ('Value Incorrect')?