On Nov 21, 2010, at 8:07 PM, Eric Simon wrote: > Ok, here's the patch for the cancel() feature with one test added to > 03smethod.t (so that the assertion at the top of that test file would remain > true). I tried to think of other ways cancel() could be tested, but there > just isn't any. It is useful when another database handle is holding a lock > on a table/row, which I demonstrated in the test (when you call cancel() on > a statement handle that isn't blocking, it is just a no-op, so there's no > purpose in testing that either). > > Just a heads-up, I had to 'use POSIX' in 03smethod.t as that is the only way > to reliably handle signals (DBI's doc even suggests this at the bottom of > its "Signal Handling and Canceling Operations" section).
Redirected to RT so that it doesn't get lost. https://rt.cpan.org/Ticket/Display.html?id=63516 Thanks! David