IBM Support

PI39672: AN EMPTY RESULTSET IS RETURNED FROM JDBC GETPRIMARYKEYS() IF NULL SCHEMA PARM PASSED IN AND TABLE NAME CONTAINS '_'

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • AN EMPTY RESULTSET MAY BE RETURNED FROM SQLPRIMARYKEYS IF THE
    TABLE OR SCHEMA PARM PASSED IN IS NULL
    

Local fix

  • Change the invocation of sqlprimarykeys to include a schema and
    table name instead of null values
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All Users of IBM Data Server Driver for      *
    *                 JDBC and SQLJ that connect to DB2 10 for     *
    *                 z/OS or DB2 11 for z/OS                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: An empty result set is returned from    *
    *                      JDBC getPrimaryKeys() if the input      *
    *                      schema name is NULL and the input       *
    *                      table name contains UNDERSCORE          *
    *                      character '_'.                          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Database Metadata store procedure, SYSIBM.SQLPRIMARYKEYS, is
    invoked when a JDBC application calls getPrimaryKeys().
    When getPrimaryKeys()'s input schema name is NULL and its
    input table name contains UNDERSCORE('_') character, Procedure
    SQLPRIMARYKEYS() adds an ESCAPE character before each
    UNDERSCORE character. DB2 doesn't find the searched table
    object, an empty result set is returned.
    

Problem conclusion

  • Extra ESCAPE character is removed before sending the table
    object to DB2, the correct result set is returned.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI39672

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-04-22

  • Closed date

    2015-06-03

  • Last modified date

    2015-07-01

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

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

    UI28175 UI28176

Modules/Macros

  • DSN@PRKU DSNAPRKU
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RA10 PSY UI28175

       UP15/06/19 P F506

  • RB10 PSY UI28176

       UP15/06/19 P F506

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEPEK","label":"Db2 for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
01 July 2015