IBM Support

IT03676: A QUERY MAY HIT -901 ERROR WHEN IT CONTAINS PREDICATE COL=NULL

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When a query has local equality predicate on a simple column
    "tab1.colX = NULL" as well as equality predicate "tab1.colX =
    tab2.colY" where tab1 and tab2 are two different tables or
    quantifiers, the query compilation may return -901 error
    "invalid qnc assignment" and the following compiler error stack
    can be found in db2diag.log:
    
    sqlnr_splitswbox[60]
    sqlnq_qtb::box_opr_split[116]
    sqlnq_pid::update_qnc[100]
    sqlnq_pid::replace_qnc[100]
    
    Note in Oracle compatibility mode "COL=''" is also transformed
    to "COL=NULL".
    

Local fix

  • Replace "COL=NULL" or "COL=''" in ORA compatibility
    mode to an always false predicate "1=0" in the query SQL
    statement.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description.                                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix Pack 10.                      *
    ****************************************************************
    

Problem conclusion

  • First fixed in Version 9.7 Fix Pack 10.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT03676

  • 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

    2014-08-10

  • Closed date

    2014-11-17

  • Last modified date

    2014-11-17

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

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

    IT05492 IT05493

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 #: IT03676

Modified date: 17 November 2014