IBM Support

IC64161: GETGENERATEDKEYS RETURNS A NULL RESULTSET INSTEAD OF THE ACTUAL GENERATED IDENTITY VALUES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • JDBC Applications can use the getGeneratedKeys method to
    retrieve the Identity column values generated by an INSERT. In
    JCC version 3.57.82 (shipped with DB2 v9.7 GA) this method
    incorrectly returns a NULL resultset.
    

Local fix

Problem summary

  • Users Affected: JCC applications inserting data into Tables with
    Generated Identity columns using the getGeneratedKeys method to
    retrieve the generated Identity column value.
    
    Problem Description: The getGeneratedKeys method incorrectly
    returns NULL instead of the generated value. This problem occurs
    in JCC versions greater than 3.53.95 and less than 3.57.86
    

Problem conclusion

  • First fixed in JCC version 3.57.86 which was shipped with DB2
    v9.7 FP1.
    
    The problem is also fixed in JCC version 3.57.82 which was
    shipped with Data Studio 2.2.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC64161

  • 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

    2009-10-27

  • Closed date

    2009-12-22

  • Last modified date

    2010-02-09

  • 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

  • R950 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
09 February 2010