-396   object-type object-name ATTEMPTED TO EXECUTE AN SQL STATEMENT DURING FINAL CALL PROCESSING

Explanation

A user-defined function named object-name was invoked and attempted to execute an SQL statement (other than CLOSE CURSOR) during final call processing, but the statement is not allowed.

System action

The SQL statement cannot be executed.

Programmer response

Change the definition of the function to not issue SQL statements during final call processing.

SQLSTATE

38505