1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-08 06:38:12 -04:00

DBD::SQLite: better hide the intentional error

This commit is contained in:
Kenichi Ishigaki 2009-10-19 07:13:08 +00:00
parent 2e0020b3eb
commit 1dcd2489c0

View file

@ -9,12 +9,14 @@ BEGIN {
use Test::More tests => 4;
use t::lib::Test;
my $dbh = connect_ok( PrintError => 1, RaiseError => 0 );
my $dbh = connect_ok( PrintError => 0, RaiseError => 0 );
my $sth = $dbh->prepare('CREATE TABLE foo (f)');
$dbh->disconnect;
$sth->{PrintError} = 1;
# attempt to execute on inactive database handle
my @warning = ();
SCOPE: {