Commit 0b90f4c9 authored by Alexander Butenko's avatar Alexander Butenko

Fix for #196: copy clears a part of a subquery

parent 7e3b9108
......@@ -1071,7 +1071,9 @@ class MysqliDb
*/
public function copy ()
{
return clone $this;
$copy = unserialize (serialize ($this));
$copy->_mysqli = $this->_mysqli;
return $copy;
}
/**
......
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