Re: Locks dont lock

2003-12-11 Thread Reverend Deuce
Kim, I use WRITE locks extensively with MySQL 4 with a large distributed application. Your example logs indicate that your test application obtained a READ lock, which will not block other select requests from accessing the table. Only a WRITE lock will cause subsequent select requests to be hel

Re: Locks dont lock

2003-12-11 Thread Victoria Reznichenko
"Kim G. Pedersen" <[EMAIL PROTECTED]> wrote: > > I try in my program to make a lock. > > I try to prevent another session to read and write from the whole table > I tried both > LOCK TABLES pstockx WRITE > and > LOCK TABLES pstockx READ > > but no success. > > I put in a breakpoint in my prog

Locks dont lock

2003-12-10 Thread Kim G. Pedersen
Hello I try in my program to make a lock. I try to prevent another session to read and write from the whole table I tried both LOCK TABLES pstockx WRITE and LOCK TABLES pstockx READ but no success. I put in a breakpoint in my program to be sure the lock are held and then I try to make a s