IBM Support

JR26206: V8 FIXPACK 9 OR HIGHER CUSTOMERS MAY HIT A CLI0146E ERROR ON CALL TO SQLSETPOS WITH SQL_DELETE OPTION.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Version 8 fixpack 9 or newer customers may hit a CLI0146E error
    on a call to SQLSETPOS when the SQL_DELETE option is used on
    that call.
    .
    The following script in CLI reproduces the error:
    SQLFetchScroll 1 SQL_FETCH_BOOKMARK 0
    sqlsetstmtattr 1 SQL_ATTR_RETRIEVE_DATA 0
    SQLFetchScroll 1 SQL_FETCH_BOOKMARK 0
    sqlbindcol 1 0 SQL_C_BOOKMARK 40
    SQLSetPos 1 1 SQL_DELETE SQL_LOCK_NO_CHANGE
    .
    The issue occurs when SQL_ATTR_RETRIEVE_DATA is set to 0, the
    current cursor position is used and no additional rows are
    retrieved from the server.
    

Local fix

Problem summary

  • CLI0416E error from SQLSetPos with SQL_DELETE option.
    This sequence of CLI script calls will produce the error:
    SQLFetchScroll 1 SQL_FETCH_BOOKMARK 0
    sqlsetstmtattr 1 SQL_ATTR_RETRIEVE_DATA 0
    SQLFetchScroll 1 SQL_FETCH_BOOKMARK 0
    sqlbindcol 1 0 SQL_C_BOOKMARK 40
    SQLSetPos 1 1 SQL_DELETE SQL_LOCK_NO_CHANGE
    

Problem conclusion

  • By setting SQL_RETRIEVE_DATA to SQL_RD_OFF, an application can
    verify if a row exists or retrieve a
    bookmark for the row without incurring the overhead of
    retrieving rows.
    .
    First fixed in fixpack 11.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR26206

  • Reported component name

    DB2 UDB ESE WIN

  • Reported component ID

    5765F4101

  • Reported release

    810

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-03-21

  • Closed date

    2008-02-15

  • Last modified date

    2008-02-15

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

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

    JR26369

Fix information

  • Fixed component name

    DB2 UDB ESE WIN

  • Fixed component ID

    5765F4101

Applicable component levels

  • R820 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"810","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 February 2008