IBM Support

IT09606: SELECT ON XML USING FN:UPPER-CASE & TABLE HAS AN INDEX CAN RETURN INCORRECT RESULTS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • SELECT on XML table using fn:upper-case can return incorrect
    results when the table has an XML index.
    
    If you have the following conditions:
    
    - Table with XML Column
    - Index on this XML column and does not contain the upper-case
    function in the path
    - SELECT statement that has where condition on the XML column
    that uses fn:upper-case
    
    For example,
    
    db2 -v "create table myXMLtable(id int, XMLcol XML)"
    db2 -v "insert into myXMLtable values
    (1,'<AddProtQuoteResponse><surname>Griffin</surname><test>test1<
    /test></AddProtQuoteResponse>')"
    db2 -v "select t.id, x.surname,x.surname1 from myXMLtable t,
    xmltable (xmlnamespaces('http://www.example.org/DataTypeTest' as
    \"inter\"), '\$i/*:AddProtQuoteResponse' passing t.XMLcol AS
    \"i\" columns surname varchar(15) path 'surname', surname1
    varchar(15) path 'surname/fn:upper-case(.)') as x where
    x.surname1 = 'GRIFFIN'";
    db2 -v "CREATE INDEX TSTIDX ON myXMLtable (XMLcol ASC) GENERATE
    KEY USING XMLPATTERN '/*:AddProtQuoteResponse/surname' AS SQL
    VARCHAR (255)"
    db2 -v "select t.id, x.surname,x.surname1 from myXMLtable t,
    xmltable (xmlnamespaces('http://www.example.org/DataTypeTest' as
    \"inter\"), '\$i/*:AddProtQuoteResponse' passing t.XMLcol AS
    \"i\" columns surname varchar(15) path 'surname', surname1
    varchar(15) path 'surname/fn:upper-case(.)') as x where
    x.surname1 = 'GRIFFIN'";
    

Local fix

Problem summary

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

Problem conclusion

  • The problem is first fixed in DB2 version 10.1.0.5.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT09606

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    YesHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-06-23

  • Closed date

    2015-07-10

  • Last modified date

    2015-07-10

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

    IT07403

  • 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

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

Document Information

Modified date:
10 July 2015