IBM Support

PM00496: SQLROWCOUNT() RETURNS PCROW=-1 AND RC=SQL_SUCCESS AFTER A SUCCESSFUL BULK INSERT.

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • SQLRowCount() returns -1 as the number of rows affected by a
    bulk insert, even though the insert was successful.
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All users of DB2 UDB for z/OS Version 8      *
    *                 ODBC/CLI.                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: Following a successful bulk insert,     *
    *                      SQLRowCount() returns -1 for pcrow      *
    *                      instead of the number of rows affected  *
    *                      by the bulk insert.                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Following a successful bulk INSERT, SQLRowCount() incorrectly
    returns -1 for pcrow even though the return code of the API
    call is SQL_SUCCESS.  It should return the number of rows in
    the table that were affected by the bulk INSERT.
    

Problem conclusion

  • SQLRowCount() has been updated to return the number of rows
    following an execution of a bulk INSERT.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM00496

  • Reported component name

    DB2 ODBC/JDBC/S

  • Reported component ID

    5740XYR02

  • Reported release

    817

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2009-11-05

  • Closed date

    2010-06-01

  • Last modified date

    2010-07-01

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

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

    UK57528

Modules/Macros

  •    CLIRETR  DSNAOCLI DSNAOC0R DSNAOSDK
    

Fix information

  • Fixed component name

    DB2 ODBC/JDBC/S

  • Fixed component ID

    5740XYR02

Applicable component levels

  • R817 PSY UK57528

       UP10/06/19 P F006

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.

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEPEK","label":"Db2 for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"817"}]

Document Information

Modified date:
03 March 2021