IBM Support

IC80338: WHEN INNER JOIN OPERATION IS REFERENCED OUTSIDE OF FROM CLAUSE, DB2 RETURNS SQL0901N ERROR MESSAGE AND GENERATES DUMP FILES.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When INNER JOIN operation is referenced outside of FROM clause,
    db2 returns SQL0901N error message and generates dump files. For
    example:
    
       with
          test1  as (  select 1 as c1    from sysibm.sysdummy1  ) ,
          test1_recur  ( c1 )  as  (
            select c1  from test1
            union all
              (select c1+1 from test1_recur  where c1 < 10 )  as c1
              inner join
              (  select 3 as c3  from sysibm.sysdummy1  ) as c3
              on 1=1   and c3.c3 = c1.c1  )
       select * from test1_recur;
    
    This example query is not syntaticaly correct. The INNER JOIN
    operation can only be referenced in the FROM clause of a
    subselect.
    
    When this query is executed, db2 returns SQL0901N error and
    generates dump files.  This APAR will return more graceful error
    instead of the SQL0901N, which will not generate dump files.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fixpack 6  or later.              *
    ****************************************************************
    

Problem conclusion

  • The issue is first fixed in DB2 Version 9.7 Fixpack 6.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC80338

  • 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

    2011-12-09

  • Closed date

    2012-06-12

  • Last modified date

    2012-06-12

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

    IZ86243

  • 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

  • RA10 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:
12 June 2012