DB2 - Problem description
Problem IC97308 | Status: Closed |
SQL1224N DURING CREATE FUNCTION WHEN AUTO_REVAL=DEFERRED_FORCE | |
product: | |
DB2 FOR LUW / DB2FORLUW / A50 - DB2 | |
Problem description: | |
When you create an SQL function in a database in which the AUTO_REVAL configuration parameter has been set to DEFERRED_FORCE, error SQL1224N will occur if any error exists in the function header. For example, the following PL/SQL function will cause the error to occur, if user-defined type 'numberTable2' does not exist: CREATE OR REPLACE FUNCTION NumbersBetweenPiped( startValue NUMBER, endValue NUMBER ) RETURN numberTable2 PIPELINED IS nCounter NUMBER; BEGIN FOR nCounter IN startValue..endValue LOOP PIPE ROW ( nCounter ); END LOOP; END; / | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * ALL * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Update to DB2 Version 10.5 Fix Pack 4. * **************************************************************** | |
Local Fix: | |
Ensure that all elements in the function header (that is, before the first BEGIN statement) are properly defined, valid, and have the relevant permissions prior to issuing the CREATE FUNCTION statement. Alternatively, set the AUTO_REVAL database configuration parameter to something other than DEFERRED_FORCE, to disable create-with-error semantics. | |
available fix packs: | |
DB2 Cancun Release 10.5.0.4 (also known as Fix Pack 4) for Linux, UNIX, and Windows | |
Solution | |
Delivered in DB2 Version 10.5 Fix Pack 4. | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 30.10.2013 08.09.2014 08.09.2014 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) | |
10.5.0.4 |