IBM Support

IC79727: QUERIES WITH LIKE OPERATORS MIGHT RETURN INCORRECT RESULTS DUE TO AN INVALID HIGHEST PADDING CHARACTER

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • SQL statements with LIKE operators might not return the correct
    rows that are expected to be returned. This problem arises when
    all the following conditions are met:
    
    a) Unicode database using language aware collation is involved.
    b) The SQL statement includes a LIKE predicate or a substring
    function involved in a basic predicate.
    c) The LIKE predicate compares UTF-8 strings that contains
    characters encoded between 0xEE8080 to 0xEFBFBF.
    d) The EXPLAIN statement  shows the predicate filter rows by
    start or stop key predicate.
    
    Affected platforms: AIX 64-bit, Linux 64-bit System z
    (linux390), Linux 32-bit, linux 64 bit PPC
    
    After applying a fix pack or an APAR, perform the following
    steps:
    
    1. Rebind all packages using the db2rbind all command.
    2. Refresh the MQTs using the REFRESH TABLE command.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users who use Unicode databases on AIX 64-bit, Linux 64-bit  *
    * System z (linux390), Linux 32-bit, linux 64 bit PPC          *
    * platforms                                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * SQL statements with LIKE operators might not return the      *
    * correct rows that are expected to be returned. This problem  *
    * arises when all the following conditions are met:            *
    *                                                              *
    * a) Unicode database using language aware collation is        *
    * involved.                                                    *
    * b) The SQL statement includes a LIKE predicate or a          *
    * substring function involved in a basic predicate.            *
    * c) The LIKE predicate compares UTF-8 strings that contains   *
    * characters encoded between 0xEE8080 to 0xEFBFBF.             *
    * d) The EXPLAIN statement  shows the predicate filter rows by *
    * start or stop key predicate.                                 *
    *                                                              *
    * After applying a fix pack or an APAR, perform the following  *
    * steps:                                                       *
    *                                                              *
    * 1. Rebind all packages using the db2rbind all command.       *
    * 2. Refresh the MQTs using the REFRESH TABLE command.         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Please upgrade to DB2 V9.7 FixPack 6 or later, then rebind   *
    * all packages and refresh MQTs.                               *
    ****************************************************************
    

Problem conclusion

  • This problem was first fixed in DB2 V9.7 FixPack 6.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC79727

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    YesSpecatt / Pervasive

  • Submitted date

    2011-11-10

  • Closed date

    2012-06-05

  • Last modified date

    2012-06-06

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

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

    IC81495 IC81496

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC79727

Modified date: 06 June 2012