in reply to Re: using DESTROY to DBI disconnect
in thread using DESTROY to DBI disconnect
Thus if you have two statements then this
is wrong, as $DBI::err contains the error from $sth2.$sth1->execute; $sth2->execute; print "Statement 1 failed" if $DBI::err;
The DBI book (and the DBI pod) therefore recommends that you use $sth1->err and $sth2->err instead if possible. (They are marignally faster to access as well).
|
|---|