Skip to main content

JR43118: DELETE/UPDATE WITH WHERE CURRENT OF CURSOR CLAUSE COULD OPERATE ON THE INCORRECT RECORD


Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • DELETE/UPDATE with WHERE CURRENT OF CURSOR clause could
    delete/update the wrong record. E.g.
    
    DECLARE cs1 CURSOR FOR SELECT col1 FROM nick1 WHERE col2 =
    'ABC'  AND NOT EXISTS (SELECT 1 FROM nick2 WHERE nick1.col3 =
    nick2.col3) FOR UPDATE
    OPEN cs1
    FETCH cs1
    DELETE FROM nick1 WHERE CURRENT OF cs1
    
    The DELETE could end up delete the wrong record in nick1.
    

Local fix

  • Tuning the query to use query plan without sort or temp
    operation on ship.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * The user is running DELETE/UPDATE statement with WHERE       *
    * CURRENT OF CURSOR clause.                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Server V10.1 FP1.                             *
    ****************************************************************
    

Problem conclusion

  • Firstly fixed in DB2 Server V10.1 FP1.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR43118

  • Reported component name

    FEDERATED COMPI

  • Reported component ID

    5724N9702

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-06-15

  • Closed date

    2012-11-01

  • Last modified date

    2012-11-01

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

    JR43047

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

Fix information

  • Fixed component name

    FEDERATED COMPI

  • Fixed component ID

    5724N9702

Applicable component levels

  • RA10 PSY

       UP

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

InfoSphere Federation Server

Compiler


Software version:
A10


Reference #:
JR43118


Modified date:
2012-11-01

Translate my page

Content navigation