IBM Support

IC76575: A FEDERATED QUERY WITH IN PREDICATE CAN RETURN INCORRECT RESULT

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • A SQL query involving nicknames and IN predicate can return
    incorrect result. The number of returned rows can be less than
    the correct number. The query should meet the following
    conditions:
    
    1) The query has nickname involved.
    2) It has IN predicate, which is internally transformed to a
    join.
    3) The data source of nickname is not Oracle or Sybase.
    
    Example:
    SELECT n.col1, n.col2, n.col3, n.col4, n.col5
    FROM USER.NICK n
    WHERE n.col1 in (select col1 from table(values ('abcd')
    ,('efgh')) as q1(col1))
    order by 3;
    

Local fix

  • N.A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Customer on federated system on DB2 V9.7 and using IN        *
    * predicate in federated query                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Incorrect results are seen.                                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 V9.7fp5                                       *
    ****************************************************************
    

Problem conclusion

  • Issue fixed in DB2 V9.7fp5.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC76575

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-05-24

  • Closed date

    2011-12-08

  • Last modified date

    2011-12-08

  • 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

  • R970 PSN

       UP

  • R970 PSY

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC76575

Modified date: 08 December 2011