Commit d00511cd authored by Steve Müller's avatar Steve Müller

fix binding LOB values in mysqli driver prepared statement

parent 439e33a9
......@@ -165,6 +165,11 @@ class MysqliStatement implements \IteratorAggregate, Statement
throw new MysqliException($this->_stmt->error, $this->_stmt->errno);
}
// We have a result.
if (false !== $this->_columnNames) {
$this->_stmt->store_result();
}
if (null === $this->_columnNames) {
$meta = $this->_stmt->result_metadata();
if (false !== $meta) {
......@@ -190,11 +195,6 @@ class MysqliStatement implements \IteratorAggregate, Statement
}
}
// We have a result.
if (false !== $this->_columnNames) {
$this->_stmt->store_result();
}
return true;
}
......
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