Project

General

Profile

Redmine.pm with sqlite3

Added by In Bae Jeong almost 15 years ago

Error log "closing dbh with active statement handles at /usr/lib64/perl5/vendor_perl/5.8.8/Apache/Redmine.pm line 317." is repeating on my server. It seems that it's a bug of DBI or DBD-SQLite, but it can be suppressed with tiny modification of Redmine.pm.

Here is the patch.

$ svn diff Redmine.pm
Index: Redmine.pm
===================================================================
--- Redmine.pm  (revision 3285)
+++ Redmine.pm  (working copy)
@@ -244,6 +244,7 @@
        }
     }
     $sth->finish();
+    undef $sth;
     $dbh->disconnect();

     $ret;

See http://www.perlmonks.org/?node_id=665714 and http://www.nntp.perl.org/group/perl.dbi.users/2006/05/msg29202.html.


Replies (1)

RE: Redmine.pm with sqlite3 - Added by Jean-Philippe Lang almost 15 years ago

Fix committed in r3300, see #4205.
Thanks.

    (1-1/1)