Commit 7420002d authored by Alexander Butenko's avatar Alexander Butenko

Avoid critical error after update with nonstandart bind variables

parent ab37f91e
......@@ -579,6 +579,12 @@ class MysqliDb
$meta = $stmt->result_metadata();
// if $meta is false yet sqlstate is true, there's no sql error but the query is
// most likely an update/insert/delete which doesn't produce any results
if(!$meta && $stmt->sqlstate) {
return array();
}
$row = array();
while ($field = $meta->fetch_field()) {
$row[$field->name] = null;
......
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