IBM Support

IT09013: DB2 MIGHT PRODUCE INCORRECT RESULTS WHEN RUNNING QUERIES WITH EQUALITY TIMESTAMP PREDICATES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • DB2 might produce incorrect results when running queries with
    equality timestamp predicates
    Description:
    Under rare scenarios, DB2 might produce incorrect results if the
    following conditions are true:
    1) The query contains two or more subselects and tables
    2) Each of these have atleast one column of type TIMESTAMP with
    default precision 6
    3) One or more of these columns are projected out from the
    select
    4) The columns also contains an equality predicate with a string
    representation of timestamp
    
    eg. Select *
           from T1, (Select TS
                            from T2
                            where T2.TS = '2015-01-01 00:00:00') as
    tmp
           where T1.TS = '2015-01-01 00:00:00' and tmp.TS =
    '2015-01-01 00:00:00'
    

Local fix

  • Workaround:
    1) Turn on statement concentrator
    2) Modify the query to introduce T1.TS = T2.TS predicate
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * First fixed in v9.7 fp11                                     *
    ****************************************************************
    

Problem conclusion

  • First fixed in v9.7 fp11
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT09013

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-05-20

  • Closed date

    2015-10-21

  • Last modified date

    2015-10-21

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

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

    IT13347 IT13370

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP

  • RA10 PSN

       UP

  • RA50 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
21 October 2015