Commit ee17b700 authored by Alexander Butenko's avatar Alexander Butenko

Merge pull request #389 from avbdr/master

fixes
parents 151ef44e 873077a6
...@@ -1731,7 +1731,7 @@ class MysqliDb ...@@ -1731,7 +1731,7 @@ class MysqliDb
public function copy() public function copy()
{ {
$copy = unserialize(serialize($this)); $copy = unserialize(serialize($this));
$copy->_mysqli = $this->_mysqli; $copy->_mysqli = null;
return $copy; return $copy;
} }
......
...@@ -360,6 +360,8 @@ if ($c != 3) { ...@@ -360,6 +360,8 @@ if ($c != 3) {
echo "copy with subquery count failed"; echo "copy with subquery count failed";
exit; exit;
} }
unset ($cnt);
$data = $db->get('users'); $data = $db->get('users');
if (count($data) != 3) { if (count($data) != 3) {
echo "copy with subquery data count failed"; echo "copy with subquery data count failed";
......
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