IBM Support

IC85491: SQLSTATE RETURNED FOR MISSING TABLE/VIEW IS INCORRECT ? RETURNS D42S22 (COLUMN NOT FOUND) INSTEAD OF D42S02 (TABLE NOT FOUND).

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • In case of Informix Server (IDS) when trying through cli driver
    on a query of invalid table , scenarios like table no present
    when tried to drop table. When tried to create index on a table
    which is not present it should return error S0002 but it was
    returning error code S0022 which is for invalid columns in case
    of db2 .
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * When CLI driver is used against Informix Server.             *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * In case of Informix Server (IDS) when trying through cli     *
    * driver                                                       *
    * on a query of invalid table , scenarios like table no        *
    * present                                                      *
    * when tried to drop table. When tried to create index on a    *
    * table                                                        *
    * which is not present it should return error S0002 but it was *
    * returning error code S0022 which is for invalid columns in   *
    * case                                                         *
    * of db2 .                                                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 V9.7 FP7 or later releases.                   *
    ****************************************************************
    

Problem conclusion

  • DB2 V9.7 Fix Pack 7 contains fix of this issue. After the fix,
    CLI driver returns correct error message.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC85491

  • Reported component name

    DB2 CONNECT

  • Reported component ID

    DB2CONNCT

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-07-24

  • Closed date

    2014-08-30

  • Last modified date

    2014-08-30

  • 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 CONNECT

  • Fixed component ID

    DB2CONNCT

Applicable component levels

  • R970 PSY

       UP

  • RA10 PSY

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC85491

Modified date: 30 August 2014