pessimistic lock hang
Posted: Sun 02 Jan 2011 14:51
Hello, I've a problem with a multiuser application.
MyDac: 6.00.0.1 for Delphi XE
MySQL server version: 5.5.8
this is the scenario:
Pc A:
mytable.Edit;
Pc B:
mytable.Edit;
Here I expected an exception to be thrown,
so I can alert the user he can't editing that record at that time.
But, when the "Pc B" call mytable.Edit, the application hang until the "Pc A"
call post or commit. Also the OnEditError event is not fired.
this happens also into the mydac lock demo in the same way.
ps: Both Pc A and Pc B are connecting to mysql server with the same account and the table engine is InnoDB.
I hope you have some suggestion on this.
MyDac: 6.00.0.1 for Delphi XE
MySQL server version: 5.5.8
this is the scenario:
Pc A:
mytable.Edit;
Pc B:
mytable.Edit;
Here I expected an exception to be thrown,
so I can alert the user he can't editing that record at that time.
But, when the "Pc B" call mytable.Edit, the application hang until the "Pc A"
call post or commit. Also the OnEditError event is not fired.
this happens also into the mydac lock demo in the same way.
ps: Both Pc A and Pc B are connecting to mysql server with the same account and the table engine is InnoDB.
I hope you have some suggestion on this.