in reply to what does sth->execute return ?
Regardless of what DBI::execute returns, i
always (well ... 99% of the time)
handle errors by setting the RaiseError attrib to
a true value:
Now, every error is caught, so i can safely use:my $dbh = DBI->connect( qw(DBI:vendor:database:host user pass), {RaiseError=>1} );
without having to check for errors ... DBI will do it for me. ;)my $sth = $dbh->prepare('select foo from bar'); $sth->execute();
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|