From: Brandon L. Black Date: Wed, 15 Mar 2006 14:07:30 +0000 (+0000) Subject: silence PrintError in our RaiseError eval X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1cd0176126660e142768867888beaea82e104ce8;p=dbsrgits%2FDBIx-Class-Historic.git silence PrintError in our RaiseError eval --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index afc8a66..3a7d978 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -527,7 +527,9 @@ sub columns_info_for { if ($self->dbh->can('column_info')) { my %result; my $old_raise_err = $self->dbh->{RaiseError}; + my $old_print_err = $self->dbh->{PrintError}; $self->dbh->{RaiseError} = 1; + $self->dbh->{PrintError} = 0; eval { my $sth = $self->dbh->column_info( undef, undef, $table, '%' ); $sth->execute(); @@ -541,6 +543,7 @@ sub columns_info_for { } }; $self->dbh->{RaiseError} = $old_raise_err; + $self->dbh->{PrintError} = $old_print_err; return \%result if !$@; }