cvs: pear /MDB pear_wrapper.php

From: Date: Sat, 24 Aug 2002 22:20:27 +0000
Subject: cvs: pear /MDB pear_wrapper.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5939@lists.php.net to get a copy of this message
lsmith Sat Aug 24 18:20:27 2002 EDT Modified files: /pear/MDB pear_wrapper.php Log: use MDB::isError instead of DB::isError Index: pear/MDB/pear_wrapper.php diff -u pear/MDB/pear_wrapper.php:1.21 pear/MDB/pear_wrapper.php:1.22 --- pear/MDB/pear_wrapper.php:1.21 Thu Aug 22 07:34:12 2002 +++ pear/MDB/pear_wrapper.php Sat Aug 24 18:20:27 2002 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@dybnet.de> | // +----------------------------------------------------------------------+ // -// $Id: pear_wrapper.php,v 1.21 2002/08/22 11:34:12 lsmith Exp $ +// $Id: pear_wrapper.php,v 1.22 2002/08/24 22:20:27 lsmith Exp $ // require_once (dirname(__FILE__).'/MDB.php'); @@ -81,7 +81,7 @@ function apiVersion() { - return MDB::apiVersion(); + return 2; } function isError($value) @@ -180,7 +180,7 @@ function free() { $err = $this->dbh->freeResult($this->result); - if(DB::isError($err)) { + if(MDB::isError($err)) { return $err; } $this->result = FALSE; @@ -286,7 +286,7 @@ function execute($stmt, $data = FALSE) { $result = $this->MDB_object->execute($stmt, NULL, $data); - if (DB::isError($result) || $result === DB_OK) { + if (MDB::isError($result) || $result === DB_OK) { return $result; } else { return new DB_result($this->MDB_object, $result); @@ -322,7 +322,7 @@ function limitQuery($query, $from, $count) { $result = $this->MDB_object->limitQuery($query, $from, $count); - if (DB::isError($result) || $result === DB_OK) { + if (MDB::isError($result) || $result === DB_OK) { return $result; } else { return new DB_result($this->MDB_object, $result);

« previous php.pear.cvs (#5939) next »