IBM Support

IC85221: SQL WITH NESTED MATH OPERATIONS ON COLUMNS THAT ARE DEFINED WITH NOT NULL AND USING FUNCTIONS MAY RETURNED DIFFERENT RESULTS.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Incorrect results are possible when doing nested math operations
    on columns that are defined with NOT NULL and using functions.
    
    Example (pseudo-code):
    
    create function3(col1 bigint,col2 bigint)
    {
        return function1(col1)-function2(col2);
    }
    
    SELECT SUM(function3(column1,column2)) from table;
    <-- intermittent incorrect results are possible on databases
    with smaller non-automatic SORTHEAP.
    

Local fix

  • select SUM(col1) - SUM(col2) from table
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All users                                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 version 10.1.0.1.                             *
    ****************************************************************
    

Problem conclusion

  • The problem is first fixed in DB2 version 10.1.0.1.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC85221

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    YesSpecatt / Pervasive

  • Submitted date

    2012-07-10

  • Closed date

    2012-09-13

  • Last modified date

    2012-12-07

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

    IC83608

  • 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

  • RA10 PSN

       UP

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"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":"10.1"}]

Document Information

Modified date:
20 September 2021