ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1562 closed defect (fixed)

DB関数でdsn_nameが指定できない

Reported by: ogawa Owned by: ogawa
Priority: critical Milestone: OpenPNE2.10.2
Component: その他 Version: 2.10.x & 2.11.x
Keywords: OpenPNE2.11.2 Cc:

Description (last modified by ebihara)

■現象

webapp/lib/db/common.php で強制的に'main_reader'が指定されてしまう。

■原因

以下のような、比較演算子と代入演算子の記述ミス。

    if ($dsn_name = 'main_reader') {
        $reader =& db_get_instance($dsn_name, true);
    }

■修正内容

以下のように修正。

    if ($dsn_name === 'main_reader') {
        $reader =& db_get_instance($dsn_name, true);
    }

■関連情報

Change History (7)

comment:1 Changed 12 years ago by ogawa

Owner: changed from nobody to ogawa
Status: newassigned

修正しました。

comment:2 Changed 12 years ago by ogawa

Description: modified (diff)
Resolution: fixed
Status: assignedclosed

comment:3 Changed 12 years ago by kiwa

Description: modified (diff)

comment:4 Changed 12 years ago by kiwa

Keywords: テスト待ち added
Resolution: fixed
Status: closedreopened

動作テストが完了していないのでテスト待ちに変更します

comment:5 Changed 12 years ago by kiwa

Resolution: fixed
Status: reopenedclosed

comment:6 Changed 12 years ago by kiwa

Keywords: テスト待ち removed

comment:7 Changed 12 years ago by ebihara

Description: modified (diff)
Note: See TracTickets for help on using tickets.