1
0
mirror of synced 2025-01-31 12:32:59 +03:00

- fixed return value to be bool for execute() (did not run test suite)

This commit is contained in:
lsmith 2007-08-14 14:53:04 +00:00
parent 635f1a9c8f
commit 39e024c166

View File

@ -217,21 +217,22 @@ class Doctrine_Connection_Statement implements Doctrine_Adapter_Statement_Interf
$event = new Doctrine_Event($this, Doctrine_Event::STMT_EXECUTE, $this->getQuery(), $params);
$this->_conn->getListener()->preStmtExecute($event);
$result = true;
if ( ! $event->skipOperation) {
$this->_stmt->execute($params);
$result = $this->_stmt->execute($params);
$this->_conn->incrementQueryCount();
}
$this->_conn->getListener()->postStmtExecute($event);
return $this;
return $result;
} catch (PDOException $e) {
} catch (Doctrine_Adapter_Exception $e) {
}
$this->_conn->rethrowException($e, $this);
return $this;
return false;
}
/**
* fetch