Subject: | Fix for SQLite driver |
Date: | Tue, 5 Feb 2008 06:17:33 +0100 |
To: | bug-CGI-Session [...] rt.cpan.org |
From: | "Alexander Batyrshin" <0x62ash [...] gmail.com> |
Hello,
SQLite driver always return this:
DBI::db=HASH(0x89601c)->disconnect invalidates 1 active statement
handle (either destroy statement handles or call finish on them before
disconnecting) at /Library/Perl/5.8.8/CGI/Session/Driver/DBI.pm line
133.
closing dbh with active statement handles at
/Library/Perl/5.8.8/CGI/Session/Driver/DBI.pm line 133.
Fix for this solution will be to add new method into sqlite.pm:
sub DESTROY {
unless ( $self->{Handle}->{AutoCommit} ) {
$self->{Handle}->commit;
}
if ( $self->{_disconnect} ) {
undef $self->{Handle};
}
}
More info you can find here - http://perlmonks.org/?node_id=665714
--
Alexander Batyrshin aka bash
bash = Biomechanica Artificial Sabotage Humanoid