Re: finishing sth using Childhandles
- From: henri@xxxxxxxxxxxxx (Henri Asseily)
- Date: Tue, 29 Aug 2006 15:56:10 +0200
On Aug 29, 2006, at 2:08 PM, michael.peppler@xxxxxxxxxxxxxx wrote:
As you see this calls the DESTROY for the sth (which cancels the query),
and then calls the DESTROY for the dbh (which closes the connection). There
is no special code in DBD::Sybase to handle this case AFAIK.
Thanks, I didn't have easy access to a DBI-enabled machine today :-)
However, the dbh undef calls the sth DESTROY which calls the sth finish(), and the sth finish can, in some cases, throw an error such as the one I had that says :
dbih_setup_fbav: invalid number of fields: -1, NUM_OF_FIELDS attribute probably not set right
The "in some cases" above is after a signal interrupt, when the sth is potentially a bad state.
So how do I clear the sth when I know it's in a bad state, without calling finish() that expects the sth to be in a workable state?
H
.
- References:
- Re: finishing sth using Childhandles
- From: Michael Peppler
- Re: finishing sth using Childhandles
- Prev by Date: DBI::PurePerl and DBD::Oracle...
- Next by Date: Re: DBI::PurePerl and DBD::Oracle...
- Previous by thread: Re: finishing sth using Childhandles
- Next by thread: Re: finishing sth using Childhandles
- Index(es):
Relevant Pages
|
|