Skip Menu |
 

This queue is for tickets about the DBD-SQLite CPAN distribution.

Report information
The Basics
Id: 106151
Status: resolved
Priority: 0/
Queue: DBD-SQLite

People
Owner: Nobody in particular
Requestors: felipe [...] felipegasper.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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>
Download (untitled) / with headers
text/plain 529b
=========== #!/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
Download (untitled) / with headers
text/plain 750b
On Thu Jul 30 11:51:18 2015, felipe@felipegasper.com wrote: Show quoted text
> =========== > #!/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
Thanks. Fixed with https://github.com/DBD-SQLite/DBD-SQLite/commit/f7dde96931042ebf1eebba4cb1e43ebd94782818
Subject: Re: [rt.cpan.org #106151] SAVEPOINT bug
Date: Tue, 4 Aug 2015 14:18:35 -0400
To: bug-DBD-SQLite [...] rt.cpan.org
From: Felipe Gasper <felipe [...] felipegasper.com>
Download (untitled) / with headers
text/plain 913b
Thank you! :) -FG On 4 Aug 2015 7:19 AM, Kenichi Ishigaki via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=106151 > > > On Thu Jul 30 11:51:18 2015, felipe@felipegasper.com wrote:
>> =========== >> #!/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
> > Thanks. Fixed with https://github.com/DBD-SQLite/DBD-SQLite/commit/f7dde96931042ebf1eebba4cb1e43ebd94782818 >
Closed as 1.50 was shipped. Thanks.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.