[EMAIL PROTECTED] (Hardy Merrill) writes:

> I'll just clarify that you need to test/trap errors on *all* your
> DBI statements, including the connect and prepare.

Actually, for a siginificant subset of simple applications, it is
sufficient to specify RaiseError=>1, AutoCommit=>0 and be done with it.

The default behaviour of printing an error to STDERR and rolling back
the database and exiting the process with non-zero is the right thing.

>  Read the whole 'perldoc DBI', and pay particular attention to the
> section on "RaiseError" and "Transactions", and as Brian said
> "eval".

Oh, yes, do RTFM indeed! I would not want to discourge anyone not to. :-)

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\

Reply via email to