Subject: | Never executed statements don't finalize |
Perl version:
This is perl, v5.8.7 built for darwin-2level
OS Version:
Darwin 8.4.0 Darwin Kernel Version 8.4.0: Tue Jan 3 18:22:10 PST 2006;
root:xnu-792.6.56.obj~1/RELEASE_PPC Power Macintosh powerpc
Using DBD::SQLite 1.11 with local SQLite (not external library):
If you prepare a statement and never execute it, it still counts are
being an active statement handle even if you call finish on it.
Simple example:
my $dbh = DBI->connect('dbi:SQLite:foo.db') || die("Failed to open db");
my $f = $dbh->prepare("select 1");
$f->finish();
undef $f;
$dbh->disconnect();
You still get:
closing dbh with active statement handles
Clearly we shouldn't get that warning...