MYSQL and lock

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
marcocot
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: 23.05.2007, 13:52

MYSQL and lock

Post by marcocot »

Hello to anyone,
I need lock a record to prevent other uses to modify/delete it. I use SELECT.. FOR UPDATE using TZquery. The problem is the second user stand still waiting for the first user to commit or roll back its transaction and the application freezing. I there a way to break this waiting? Maybe setting zconnection properties, but how?

Thanks
Marco
marcocot
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: 23.05.2007, 13:52

Re: MYSQL and lock

Post by marcocot »

marcocot wrote:Hello to anyone,
I need lock a record to prevent other uses to modify/delete it. I use SELECT.. FOR UPDATE using TZquery. The problem is the second user stand still waiting for the first user to commit or roll back its transaction and the application freezing. I there a way to break this waiting? Maybe setting zconnection properties, but how?

Thanks
Marco
Generally, How can I lock a row with zeoslib?

Regards
marco
Post Reply