IBM Support

IC94040: SQL20454N RC =2 WHEN OUTER JOIN OPERATOR "(+)" IS USED IN A CURSOR WHICH IS DECLARED IN A PACKAGE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • SQL20454N error will be returned if a package is compiled which
    contains an outer join operator specified as "(+)" used in a
    cursor definition. For example the following package fails to
    compile:
    
    SET SQLCOMPAT PLSQL;
    
    create table T1(fk1 integer, fk2 integer);
    create table T2(pk1 integer, pk2 integer);
    
    drop package broken;
    
    create or replace package broken as
    cursor c1(v_pk1 in T2.pk1%TYPE)
    is
      select * from T1, T2
        where T1.fk1(+) = v_pk1
          and T1.fk1(+) = T2.pk2;
    
    end broken;
    /
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix Pack 10.                      *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 Version 9.7 Fix Pack 10.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC94040

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-07-11

  • Closed date

    2014-11-11

  • Last modified date

    2014-11-11

  • APAR is sysrouted FROM one or more of the following:

    IC94038

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
11 November 2014