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.
April 12th, 2010 at 9:07 pm
Check FOR UPDATE trigger on this table.
References :