IBM Support

JR26369: 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

  • 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:
    None
    

Problem conclusion

  • First fixed in v8 FP15
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR26369

  • Reported component name

    DB2 UDB ESE WIN

  • Reported component ID

    5765F4101

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-04-12

  • Closed date

    2007-08-17

  • Last modified date

    2010-12-11

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

    JR26206

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

Fix information

  • Fixed component name

    DB2 UDB ESE WIN

  • Fixed component ID

    5765F4101

Applicable component levels

  • R820 PSY

       UP

  • R810 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"910","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
08 January 2022