Update command is deleting unrelated records?

April 12, 2010 - 3:26 pm

I’m trying to fix a software issue for a client. The client is using our software against an Oracle database. They are attempting to update records in a table via our software interface. The software generates a SQL UPDATE statement appropriately using a unique key field. The record being targeted is appropriately updated.

HOWEVER, another, totally unrelated record, is being deleted. Even if the user has no delete permissions on the table. The record being lost is the last one that would be returned if you sorted the table based on a different (multi-field) key (which isn’t being used in this procedure).

Any thoughts?

Check FOR UPDATE trigger on this table.

One Response to “Update command is deleting unrelated records?”

  1. Serge M Says:

    Check FOR UPDATE trigger on this table.
    References :

Leave a Reply