in reply to Re^2: Toggling dbi attribute within a connection?
in thread Toggling dbi attribute within a connection?
#!perl -w $|=1; use strict; use DBI; my $dbh=DBI->connect('dbi:Pg:dbname=test1'); $dbh->{PrintError}=0; $dbh->do('junk'); print "1"; eval { local $dbh->{RaiseError}=1; $dbh->do('junk'); print "2"; }; print " error " if $@; $dbh->do('junk'); print "3";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Toggling dbi attribute within a connection?
by JupiterCrash (Monk) on May 12, 2005 at 16:17 UTC | |
by jZed (Prior) on May 12, 2005 at 16:24 UTC |