devxlogo

Informix Row Locking Problem

Informix Row Locking Problem

Question:
I created a simple SQL statement to update one row of a table in a transaction. I then updated a different row in the same table while this transaction was still open. I got a 107 ISAM error (record is locked). Now, the table is definitely set to row level locking and the table has no indexes to confuse the locking issue. Therefore, it seems not to be working. Do you have any suggestions?

Answer:
What version of the engine are you on? Pre-7.X versions had a problem in which adjacent keys were locked. Do you have any constraints or triggers involved with the table? It could be something else that’s getting locked.

devx-admin

Share the Post: