IBM Support

IC83603: DYNAMIC QUERY EXECUTION FAILS WITH SQL0302 WHEN NAMED PARAMETER MARKERS ARE USED AND DEFERRED PREPARE IS ENABLED

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • If deferred prepare is enabled and a dynamic query is prepared
    that uses named parameter markers, the query
    may fail at execution time with SQL0302.  This will happen if
    there is a named parameter marker that corresponds to a VARCHAR
    data type and
    the value used at execution time is longer than 254 bytes.
    

Local fix

  • Disable deferred prepare or change named parameter markers to
    regular parameter markers (?)
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 version 9.7 fix pack 7                        *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 version 9.7 fix pack 7
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC83603

  • 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

    2012-05-20

  • Closed date

    2012-10-20

  • Last modified date

    2012-10-20

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

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

    IC91700

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 #: IC83603

Modified date: 20 October 2012