5 messages in com.mysql.lists.perlRe: Intercepting DBD:ODBC errors
FromSent OnAttachments
zzapper11 Apr 2005 08:56 
Garry Williams11 Apr 2005 09:45 
zzapper11 Apr 2005 10:00 
Garry Williams11 Apr 2005 10:37 
zzapper14 Apr 2005 08:04 
Subject:Re: Intercepting DBD:ODBC errors
From:zzapper (dav@tvis.co.uk)
Date:04/11/2005 10:00:31 AM
List:com.mysql.lists.perl

On Mon, 11 Apr 2005 12:45:51 -0400, wrote:

On Mon, 2005-04-11 at 16:57 +0100, zzapper wrote:

Certain types of mysql error seem to directly output their error message and
thus break break my scripts before the error can be intercepted at the perl level and dealt with
gracefully.

Ideas?

I guess you mean the DBI module(?). See the DBI(3) manual page, PrintError in the ATTRIBUTES COMMON TO ALL HANDLES section:

By default, "DBI->connect" sets "PrintError" "on".

Whoops I also had it specifically switched on, but what's the best policy have
it on for testing OR leave it off and always test at the Perl level?