Subject: | handler attribute |
With the following script, setting RaiseError on $sth is ignored, and just died in "no such table" error. (commented mysql results in no error)
use strict;
use DBI;
my $dbh = DBI->connect('dbi:SQLite:dbname=/tmp/sql.db', '', '', { RaiseError => 1 });
#my $dbh = DBI->connect('dbi:mysql:test', 'root', '', { RaiseError => 1 });
my $sth = $dbh->prepare('SELECT * FROM ___');
local $sth->{RaiseError} = 0;
$sth->execute;
warn "-- OK --\n";