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

Changeset 3605


Ignore:
Timestamp:
Aug 1, 2007, 5:08:01 PM (12 years ago)
Author:
ebihara
Message:

#1013:OpenPNE_DB内関数をadodb用に書き換え(途中)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/work/ebihara/prj_sysadmin/webapp/lib/OpenPNE/DB.php

    r1856 r3605  
    66
    77// PEAR::DB依存
    8 require_once 'DB.php';
     8require_once 'adodb/adodb.inc.php';
     9require_once 'adodb/adodb-pear.inc.php';
    910
    1011/**
     
    5253    function get_one($sql, $params = array())
    5354    {
    54         $sql = $this->db->modifyLimitQuery($sql, 0, 1, $params);
    5555        $res =& $this->db->getOne($sql, $params);
    5656        if (DB::isError($res)) {
     
    6262    function get_row($sql, $params = array())
    6363    {
    64         $sql = $this->db->modifyLimitQuery($sql, 0, 1, $params);
    65         $res =& $this->db->getRow($sql, $params);
     64        $recordset =& $this->db->SelectLimit($sql, 1, 0, $params);
     65        $res =& $recordset->getRows($sql, $params);
    6666        if (DB::isError($res)) {
    6767            return array();
Note: See TracChangeset for help on using the changeset viewer.