IBM Support

IT31525: 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:                                              *
    * 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

  • RB10 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
04 May 2022