cancel
Showing results for 
Search instead for 
Did you mean: 

Try/catch does not work together with spatial data?

02-17-2015 7:58 AM
2627 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

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?

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

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.