Commit b8ccef97 authored by Kim Hemsø Rasmussen's avatar Kim Hemsø Rasmussen

Fixed a few cases of where MysqliStatement::execute() did not throw a...

Fixed a few cases of where MysqliStatement::execute() did not throw a exception if a error had a occured.
parent 00adfbd0
...@@ -132,11 +132,11 @@ class MysqliStatement implements \IteratorAggregate, Statement ...@@ -132,11 +132,11 @@ class MysqliStatement implements \IteratorAggregate, Statement
if (null !== $this->_bindedValues) { if (null !== $this->_bindedValues) {
if (null !== $params) { if (null !== $params) {
if (!$this->_bindValues($params)) { if (!$this->_bindValues($params)) {
return false; throw new MysqliException($this->_stmt->error, $this->_stmt->errno);
} }
} else { } else {
if (!call_user_func_array(array($this->_stmt, 'bind_param'), $this->_bindedValues)) { if (!call_user_func_array(array($this->_stmt, 'bind_param'), $this->_bindedValues)) {
return false; throw new MysqliException($this->_stmt->error, $this->_stmt->errno);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment