I find it almost ironic that you mention error checking each query when you quote "If 'RaiseError' is not set ..."
Well, why not just set RaiseError and never need worry about explicitly die'ing yourself? Barring that you are underneath miles of framework and child processes, of course -- but for most everyday uses, this is all you need do:
Look into HandleError as well.my $dbh = DBI->connect($ds, $user, $pass, {RaiseError => 1});
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)
In reply to Re^2: DBI selectall_arrayref
by jeffa
in thread DBI selectall_arrayref
by THuG
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |