View Single Post
  #1  
Old 12-06-2006, 04:41 AM
emmitt emmitt is offline
Junior Member
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
emmitt is on a distinguished road
Default lock creation issue.

Hi all,
i tried to obtain the write lock on account numbers 1001 and 1005, using the mysql sql browser-1 i tried:
set autocommit=0
select * from account_master where accno = '1001' and accno = '1005' lock in shared mode;
commit;

and from Second browser

set autocommit=0
select * from account_master where accno = '1001' and accno = '1005' lock in shared mode;
commit;

I didn't get any errors in acquiring the locks from First browser Plz suggest some fix for it.
thanx -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - lock creation issue.
View Single Post
  #1  
Old 12-06-2006, 04:41 AM
emmitt emmitt is offline
Junior Member
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
emmitt is on a distinguished road
Default lock creation issue.

Hi all,
i tried to obtain the write lock on account numbers 1001 and 1005, using the mysql sql browser-1 i tried:
set autocommit=0
select * from account_master where accno = '1001' and accno = '1005' lock in shared mode;
commit;

and from Second browser

set autocommit=0
select * from account_master where accno = '1001' and accno = '1005' lock in shared mode;
commit;

I didn't get any errors in acquiring the locks from First browser Plz suggest some fix for it.
thanx -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote