IBM Support

IC65519: WRONG RESULTS ARE RETURNED FROM A SELECT WITH AN ORDER BY DESC IF THE DISTRIBUTION FOR THE TABLE IS OUT OF DATE

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

  • The wrong number of rows are returned with a simple SELECT with
    ORDER BY DESC if the distribution is a little bit out of date.
    
    Select *  From Test32517 Where FrwInd =  913999  order by BHJ
    Desc;
    
    A distribution must exist for the table. If there is one insert
    after the last  UPDATE STATISTICS HIGH then the result is wrong.
    
    If there is no INSERT between UPDATE STATISTICS HIGH and the
    SELECT the result is ok.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of 11.10.xC1 and above, 11.50.xC1 and above.           *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When index selfjoin is used on an index with a reverse index *
    * scan, wrong result may occur under rare conditions.          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to 11.50.xC7 and above.                              *
    ****************************************************************
    

Problem conclusion

  • The problem is fixed in 11.50.xC7.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC65519

  • Reported component name

    IBM IDS ENTRP E

  • Reported component ID

    5724L2304

  • Reported release

    B15

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-01-12

  • Closed date

    2010-10-01

  • Last modified date

    2010-10-01

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

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

Fix information

  • Fixed component name

    IBM IDS ENTRP E

  • Fixed component ID

    5724L2304

Applicable component levels

  • RB15 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSGU8G","label":"Informix Servers"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"B15","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
01 October 2010