Hi,
correct me if I'm wrong but a select for update locks resources,
and if I remerember correctly even a select on a Oracle RAC system may
lock some resources.
I'm using Oracle and the statement timeout property works as expect
even when there are waitings related to database locks.
ciao,
Giovanni
Larry
--------------------------------------------------------------------
"You don't know the power of dark side" - Darth Vader
The cause of the problem is I had a different session locking the
table I was trying to update. I believe the timeout of 2000 should
have caused a failure in the event of a lock that doesn't clear within
the timeout... shouldn't it?
What I understood is that you were expecting to statementTimeout to
work properly and raise an exception when different locks on the table
were preventing the update within n seconds.
If so I can say that with version 2 of MyBatis the I experienced a
timeout in the situation you described when using the statementTimeout
property.
I have configured it in productions systems ad sometimes we see an
oracle error reporting the cancel of the operation caused by the
timeout.
If I did understand your problem the cause does not seems a Mybatis
bug, so you should create a simple test case and someone on the list
can try to reproduce it and check if it's a bug or not.
ciao,
Giovanni
--------------------------------------------------------------------
"You don't know the power of dark side" - Darth Vader