Actions
Patch #4205
closedRedmine.pm for SQLite
Start date:
2009-11-12
Due date:
% Done:
0%
Estimated time:
Description
--- Redmine.pm (revision 3023) +++ Redmine.pm (working copy) @@ -231,13 +231,15 @@ my $dbh = connect_database($r); my $sth = $dbh->prepare( - "SELECT * FROM projects WHERE projects.identifier=? and projects.is_public=true;" + "SELECT * FROM projects WHERE projects.identifier=? and projects.is_public='t';" ); $sth->execute($project_id); my $ret = $sth->fetchrow_array ? 1 : 0; $sth->finish(); + undef $sth; $dbh->disconnect(); + undef $dbh; $ret; } @@ -303,10 +305,13 @@ $ret = 1 if ($ldap->authenticate($redmine_user, $redmine_pass)); } $sthldap->finish(); + undef $sthldap; } } $sth->finish(); + undef $sth; $dbh->disconnect(); + undef $dbh; if ($cfg->{RedmineCacheCredsMax} and $ret) { if (defined $usrprojpass) {
Updated by Jean-Philippe Lang almost 15 years ago
- Category set to SCM
- Status changed from New to Resolved
- Target version set to 0.9.0
Your patch is SQLite specific.
A fix that works with mysql, pg and sqlite3 is committed in r3246.
Updated by Jean-Philippe Lang almost 15 years ago
- Status changed from Resolved to Closed
Merged in 0.9-stable in r3248.
Actions