Commit 938b54fb authored by Steve Müller's avatar Steve Müller Committed by Benjamin Eberlei

fix binding LOB values in mysqli driver prepared statement

parent c3448dc0
......@@ -166,6 +166,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) {
......@@ -191,11 +196,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