in reply to Re: (jeffa) 2Re: Perl DBI problem
in thread Perl DBI problem

The "long hand" approach? Doesn't sound very Perlish. ;)

Anyway, hate to do this to you, but you should have RTFM'ed:

`RaiseError' (boolean, inherited) The `RaiseError' attribute can be used to force errors to raise exceptions rather than simply return error codes in the normal way. It is "off" by default. When set "on", any method which results in an error will cause the DBI to effectively do a `die("$class $method failed: $DBI::errstr")', where `$class' is the driver class and `$method' is the name of the method that failed. E.g., DBD::Oracle::db prepare failed: ... error text here ... If you turn `RaiseError' on then you'd normally turn `PrintError' off. If `PrintError' is also on, then the `PrintError' is done first (naturally).
Happy coding :)

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: (jeffa) 4Re: Perl DBI problem
by barrd (Canon) on Jun 14, 2003 at 15:00 UTC
    ++jeffa,

    :^) yup, I am a lazy sod, thanks for that. I'll slap a vote your way when I get some more 'ammo'. And I fully deserved all the down votes on this thread -- "must try harder"...

    barrd - the lazy monkey