home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Neueste VersionenFixList
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Haben Sie Probleme? - Kontaktieren Sie uns.
Kostenlos registrieren anmeldung-x26
Kontaktformular kontakt-x26

DB2 - Problembeschreibung

Problem IC73121 Status: Geschlossen

SQL1224N or SQL421N returned for inline SQL function with scalar aggregate
function as parameter

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
When the SELECT list of a result table of a SET operator (e.g. 
UNION ALL, INTERSECT, etc.) references an inline SQL function 
with a scalar aggregate function as input argument, DB2 may 
return SQL0421N or terminate abnormally (SQL1224N). 
 
 
When SQL1224N is returned, the trap file will contain the 
following stack: 
 
Signal #11 
 
sqlnq_sem 
sqlnp_smactn 
sqlnp_parser 
sqlnp_main 
sqlnn_cmpl 
sqlnn_cmpl 
sqlra_compile_var 
sqlra_find_var 
sqlra_get_var 
sqlri_ddl_get_section 
sqlri_ddl_common 
.... 
.... 
 
Examples: 
 
CREATE FUNCTION lws.GETDOCID(docid VARCHAR(254)) RETURNS 
VARCHAR(319) 
LANGUAGE SQL 
NO EXTERNAL ACTION 
DETERMINISTIC 
RETURN CONCAT(CONCAT('{DOCID$',docid), '}') ; 
 
-- Example 1: SQL0421N 
SELECT 'foo' as key 
   FROM sysibm.sysdummy1 
UNION ALL 
SELECT lws.GETDOCID(CHAR(ROW_NUMBER() OVER())) AS key 
   FROM sysibm.sysdummy1; 
 
 
-- Example 2: SQL1224N 
 SELECT lws.GETDOCID(CHAR(ROW_NUMBER() OVER())) AS key 
   FROM sysibm.sysdummy1 
UNION ALL 
 SELECT 'foo' as key 
   FROM sysibm.sysdummy1 ;
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See ERROR DESCRIPTION.                                       * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Apply DB2 v9.7 Fixpack 5 to the server.                      * 
****************************************************************
Local-Fix:
verfügbare FixPacks:
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Lösung
Apply DB2 v9.7 Fixpack 5 to the server.  At minimum this fix 
should be applied to the server.
Workaround
See LOCAL FIX.
Bug-Verfolgung
Vorgänger  : APAR is sysrouted TO one or more of the following: IC73847 IC73848 
Nachfolger : 
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
08.12.2010
02.01.2012
02.01.2012
Problem behoben ab folgender Versionen (IBM BugInfos)
9.7.FP5
Problem behoben lt. FixList in der Version
9.7.0.5 FixList