Vote #66001
完了Redmine.pm for SQLite
開始日:
2009/11/12
期日:
進捗率:
0%
予定工数:
Redmineorg_URL:
category_id:
3
version_id:
6
issue_org_id:
4205
author_id:
8613
assigned_to_id:
0
comments:
2
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
説明
--- 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) {
journals
Your patch is SQLite specific.
A fix that works with mysql, pg and sqlite3 is committed in r3246.
--------------------------------------------------------------------------------
Merged in 0.9-stable in r3248.
--------------------------------------------------------------------------------
いいね!0