IBM Support

IT31525: WRONG RESULT IN UPDATE STATEMENT HAVING CORRELATION.

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

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:                                              *
    * Install latest fix pack DB2 v11.1.4.6 (fix pack 6)           *
    ****************************************************************
    

Problem conclusion

  • Install this fix
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT31525

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    YesHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-01-14

  • Closed date

    2021-03-26

  • Last modified date

    2021-03-30

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

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

    IT31634

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1"}]

Document Information

Modified date:
31 March 2021