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

Changeset 7243


Ignore:
Timestamp:
May 15, 2008, 10:07:21 PM (11 years ago)
Author:
ebihara
Message:

#2318:最大件数を取得する関数でマスターDBを見るようにした

Location:
OpenPNE/trunk/webapp/lib/db
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/db/commu.php

    r7224 r7243  
    124124    $sql = 'SELECT MAX(number) FROM c_commu_topic_comment WHERE c_commu_topic_id = ?';
    125125    $params = array(intval($c_commu_topic_id));
    126     return db_get_one($sql, $params);
     126    return db_get_one($sql, $params, 'main');
    127127}
    128128
  • OpenPNE/trunk/webapp/lib/db/diary.php

    r7224 r7243  
    11761176    $sql = 'SELECT MAX(number) FROM c_diary_comment WHERE c_diary_id = ?';
    11771177    $params = array(intval($c_diary_id));
    1178     return db_get_one($sql, $params);
     1178    return db_get_one($sql, $params, 'main');
    11791179}
    11801180
Note: See TracChangeset for help on using the changeset viewer.