Lock record on Transaction

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
Odacir
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 19.11.2015, 16:14

Lock record on Transaction

Post by Odacir »

Hi,

I need lock a record on a system, to only one user edit and change a field indicating the record was processed.

The problem is: using any of the TIS, nothing generate a exception on other transation active... Only wait the lock end, and save the second transaction value on DB.

How to Raise a exception, on a record locked on a transaction, on ZEOS 6.6.6?

Thanks a lot any help.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Lock record on Transaction

Post by marsupilami »

Hello Odacir,

this is not so much a Zeos question as it is a question about your database.

I have seen the concept of using some kind of a locktable where some ID of the record gets inserted, the field gets modified and then the id record gets removed again before the transaction was committed. But a lot of these things do depend on your database and its locking mechanisms.

So - which database / RDBMS are you using?

With best regards,

Jan
Post Reply