Permalink
Browse files

- check for PEAR errors and not MDB errors

git-svn-id: http://svn.php.net/repository/pear/packages/RDF/trunk@177105 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 2988809 commit cb709b1512db0279a95db5b8b2419932f86af2f0 Lukas Smith committed Jan 12, 2005
Showing with 7 additions and 7 deletions.
  1. +7 −7 RDF/Model/MDB.php
View
@@ -142,7 +142,7 @@ function add(&$statement)
}
$result = $this->dbConn->query($sql);
- if (MDB::isError($result)) {
+ if (PEAR::isError($result)) {
return $result;
}
}
@@ -275,7 +275,7 @@ function contains(&$statement)
$result = $this->dbConn->queryOne($sql);
- if (MDB::isError($result)) {
+ if (PEAR::isError($result)) {
return $result;
}
@@ -380,7 +380,7 @@ function find($subject, $predicate, $object)
// execute the query
$result = $this->dbConn->query($sql);
- if (MDB::isError($result)) {
+ if (PEAR::isError($result)) {
return $result;
// write the recordSet into memory Model
}
@@ -435,7 +435,7 @@ function findVocabulary($vocabulary)
$result = $this->dbConn->query($sql);
- if (MDB::isError($result)) {
+ if (PEAR::isError($result)) {
return $result;
// write the recordSet into memory Model
}
@@ -474,7 +474,7 @@ function findFirstMatchingStatement($subject, $predicate, $object)
$this->dbConn->setSelectedRowRange(0, 1);
$result = $this->dbConn->query($sql);
- if (MDB::isError($result)) {
+ if (PEAR::isError($result)) {
return $result;
}
if (!$this->dbConn->numRows($result)) {
@@ -785,7 +785,7 @@ function delete()
$result = $this->dbConn->commit();
$this->dbConn->autoCommit(true);
- if (MDB::isError($result)) {
+ if (PEAR::isError($result)) {
return $result;
}
return $this->close();
@@ -1019,7 +1019,7 @@ function _containsRow($row)
$result =& $this->dbConn->queryOne($sql);
- if (MDB::isError($result)) {
+ if (PEAR::isError($result)) {
return $result;
}
return (bool)$result;

0 comments on commit cb709b1

Please sign in to comment.