Subject: | SAVEPOINT bug |
Date: | Wed, 29 Jul 2015 21:50:44 -0500 |
To: | bug-DBD-SQLite [...] rt.cpan.org |
From: | Felipe Gasper <felipe [...] felipegasper.com> |
===========
#!/usr/bin/perl
use DBI;
{
my $dbh = DBI->connect('dbi:SQLite::memory:');
$dbh->do('SAVEPOINT haha');
$dbh->selectall_arrayref('SELECT * FROM sqlite_master');
$dbh->do('RELEASE haha');
}
===========
^^ The above yields the following when run:
Issuing rollback() due to DESTROY without explicit disconnect() of
DBD::SQLite::db handle :memory: at - line 6.
It happens with on-disk DBs as well as in-memory ones.
It does NOT happen if I switch from savepoints to regular transactions.
-FG