OK, what if I don't have an explicit statement handle (eg
$dbh->do('...')), or if from the signal handler I don't know what
statement is executing, or (the most likely case) the statement handle
is not in scope.

I tried $dbh->cancel(), but that didn't work either.

Steve

-----Original Message-----
From: Ronald J Kimball [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 29 January 2003 8:17 AM
To: Steve Baldwin
Cc: [EMAIL PROTECTED]
Subject: Re: Calling cancel() from signal handler


On Wed, Jan 29, 2003 at 08:11:43AM +1100, Steve Baldwin wrote:
> I see in the fine manual, the suggested way of interrupting an 
> executing statement from within a signal handler is to use the cancel 
> function. Unfortunately, it doesn't give an example of its use.  I 
> tried simply doing DBI->cancel(), but receive the following error :

According to the documentation, cancel() is a method of a statement
handle.

$sth->cancel();

Ronald

Reply via email to