IBM Support

IC77123: ERROR IS NOT REPORTED FOR CALL STATEMENT WITH PARAMETER MARKER USING ARRAY INPUT SPECIFIED WITH SQL_ATTR_PARAMSET_SIZE.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Consider following testcase
    
    sqlprepare 1 "call test1(?)" -3
    getmemarray 1 1 3 sql_c_long
    updateelem 1 0 value 1
    updateelem 1 1 value 2
    updateelem 1 2 value 3
    
    sqlbindparameter 1 1 sql_param_input sql_c_long sql_integer 0 0
    1 memarray
    sqlsetstmtattr 1 sql_attr_paramset_size 3
    
    sqlexecute 1
    
    SQLExecute shows success executing call statement with only
    first element of array.
    This is misleading since call statement doesn't support array
    input.
    So for sql_attr_paramset_size > 1, error should be thrown.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * ERROR IS NOT REPORTED FOR CALL STATEMENT WITH PARAMETER      *
    * MARKER                                                       *
    * USING ARRAY INPUT SPECIFIED WITH SQL_ATTR_PARAMSET_SIZE.     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to db2 v97fp5 or later.                              *
    ****************************************************************
    

Problem conclusion

  • Fixed in db2 v97fp5.
    ERROR WILL BE REPORTED FOR CALL STATEMENT WITH PARAMETER MARKER
    USING ARRAY INPUT SPECIFIED WITH SQL_ATTR_PARAMSET_SIZE.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC77123

  • 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

    2011-06-23

  • Closed date

    2011-12-08

  • Last modified date

    2011-12-08

  • 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

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC77123

Modified date: 08 December 2011