IBM Support

IT09673: XML QUERY MAY RETURN INCORRECT RESULT WHEN IT HAS OLAP AND ORDER BY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An XML query may return incorrect result when it has all the
    following characteristics
      1. The query has a sub-select referencing OLAP function, such
    as rownum in Ora comparability mode, row_number() over (), etc.
      2. There is ORDER BY clause in the same or outer sub-select of
    the OLAP, and the columns in ORDER BY clause have expressions
    whose out-most function is XMLCAST.
    

Local fix

  • Manually rewrite the query to compute the ORDER BY XMLCAST
    expression as close as possible to the base table access, and
    replace ORDER BY expression with simple column returned from
    inner sub-select.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * DB2 UDB Version 10.5                                         *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Version 10.5 FixPack 8.                           *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in DB2 UDB Version 10.5 FixPack 8.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT09673

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A50

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-06-24

  • Closed date

    2017-01-11

  • Last modified date

    2017-01-11

  • 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

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

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

Document Information

Modified date:
29 June 2020