IBM Support

IT31634: WRONG RESULT IN UPDATE STATEMENT HAVING CORRELATION.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Description:
    Db2 query may generate incorrect result when the following
    conditions are met:
    -This is an update query
    -There is correlation in the subselect
    -There is predicate on source and target table column in the
    subselect
    

Local fix

  • Set one of the two registry variables mentioned below (which are
    on by default from 11.1).
    It will take effect immediately for newly compiled SQL
    statements.
    might need to flush the package cache for dynamic statements
    that were previously compiled.
    Static sections will need to be rebound.
    >db2set -immediate DB2COMPOPT="NO_UPDATE_COMP"
    or
    db2set -immediate DB2COMPOPT="NO_SCALARQ2LOJ"
    --No instance recycle needed.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * all                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 v11.5.4.0 or higher                           *
    ****************************************************************
    

Problem conclusion

  • Upgrade to Db2 v11.5.4.0 or higher
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT31634

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B50

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-01-23

  • Closed date

    2020-06-30

  • Last modified date

    2020-06-30

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

    IT31525

  • 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

  • RB50 PSN

       UP

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.5"}]

Document Information

Modified date:
28 September 2021