- Timestamp:
- Aug 1, 2007, 5:08:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/work/ebihara/prj_sysadmin/webapp/lib/OpenPNE/DB.php
r1856 r3605 6 6 7 7 // PEAR::DB依存 8 require_once 'DB.php'; 8 require_once 'adodb/adodb.inc.php'; 9 require_once 'adodb/adodb-pear.inc.php'; 9 10 10 11 /** … … 52 53 function get_one($sql, $params = array()) 53 54 { 54 $sql = $this->db->modifyLimitQuery($sql, 0, 1, $params);55 55 $res =& $this->db->getOne($sql, $params); 56 56 if (DB::isError($res)) { … … 62 62 function get_row($sql, $params = array()) 63 63 { 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); 66 66 if (DB::isError($res)) { 67 67 return array();
Note: See TracChangeset
for help on using the changeset viewer.