- fixed return value to be bool for execute() (did not run test suite)
This commit is contained in:
parent
635f1a9c8f
commit
39e024c166
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user