in reply to Re: DBI selectall_arrayref
in thread DBI selectall_arrayref
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBI selectall_arrayref
by davido (Cardinal) on Sep 03, 2004 at 00:04 UTC | |
by jeffa (Bishop) on Sep 03, 2004 at 02:00 UTC |