プロジェクト

全般

プロフィール

Vote #66001

完了

Redmine.pm for SQLite

Admin Redmine さんが約3年前に追加. 約3年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
開始日:
2009/11/12
期日:
進捗率:

0%

予定工数:
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:
ステータス-->[Closed]

説明

--- 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.
--------------------------------------------------------------------------------

Admin Redmine さんが約3年前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン0.9.0_6 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0