|
很多数据库都是可以控制这个timeout的时间的.
下面是TimesTen的测试
A session:
Command> Autocommit;
autocommit = 0 (OFF)
Command> update test set a=1 where a=2;
2 rows updated.
Command>
B session:
Command> autocommit;
autocommit = 0 (OFF)
Command> delete from test where a=2;
6003: Lock request denied because of time-out
Details: Tran 2.0 (pid 3659) wants Un lock on rowid 0x000000000019bf60, table TIMES.TEST. But tran 1.13 (pid 3650) has it in Xn (request was Xn). Holder SQL (update test set a=1 where a=2
The command failed. |
|