PM13289: INCORROUT FOR A CORRELATED SUBQUERY WITH MULTIPLE CCSIDS IN A CORRELATION PREDICATE

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • INCORROUT FOR A CORRELATED SUBQUERY WITH MULTIPLE CCSIDS IN A
    CORRELATION PREDICATE
    .
    SQLSUBQUERY SQLCORRSUBQ SQLINCORROUT INCORROUT SQLINCORR
    SQLCCSID SQLENCODING
     DB2INCORR/K
    

Local fix

  • Alter the query and/or tables so that the query references only
    a single CCSID.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: DB2 for z/OS users with queries referencing  *
    *                 tables with different CCSIDs.                *
    ****************************************************************
    * PROBLEM DESCRIPTION: DB2 may return incorrect output for a   *
    *                      query containing a subquery if a        *
    *                      correlation predicate references        *
    *                      multiple tables each with a different   *
    *                      CCSID.                                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    DB2 may neglect to add a necessary cast for a correlation
    predicate that references tables with differing CCSIDs
    resulting in incorrect output.  This could occur when
    the correlation predicate is not a direct column to
    column comparison.
    
    For example,
      SELECT T1.C1, T1.C2
      FROM T1
      WHERE EXISTS (
        SELECT 1
        FROM T2
        WHERE SUBSTR(T2.C3,1,4) = T1.C2
      )
    
    If T1 and T2 are defined with different CCSIDs, a
    cast must be added by DB2 to predicate
      "SUBSTR(T2.C3,1,4) = T1.C2"
    to ensure the comparison is done with both sides
    using the same character set.  DB2 could miss adding this
    cast in the above example leading to incorrect output.
    
    Additional Keywords:
    SQLINCORROUT INCORROUT SQLINCORR
    SQLCCSID SQLSUBQUERY SQLCORRSUBQ SQLENCODING
    

Problem conclusion

  • DB2 has been modified to correctly add the required cast
    and avoid the incorrect output.
    

Temporary fix

  • *********
    * HIPER *
    *********
    

Comments

APAR Information

  • APAR number

    PM13289

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    YesHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-04-28

  • Closed date

    2011-01-04

  • Last modified date

    2011-05-09

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

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

    UK63658

Modules/Macros

  •    DSNXOGP
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • R910 PSY UK63658

       UP11/01/20 P F101

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

DB2 for z/OS

Software version:

910

Reference #:

PM13289

Modified date:

2011-05-09

Translate my page

Machine Translation

Content navigation