on ‎2015 Feb 17 6:58 AM
Hello,
I have an insert inside a try block and when I try to set a NOT NULL Column to NULL I end up in the catch but
SELECT SQLCODE, ERRORMSG() INTO v_sqlcode, v_errormsg
end up with
v_sqlcode= 0 v_errormsg = NULL
Is this a correct behaviour or should it work?
Request clarification before answering.
Is the SELECT statement the first statement executed in the error handler?
Try using ERROR_SQLCODE and ERROR_MESSAGE builtin functions - those should report the error information anywhere in the handler, not just in the first statement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.