Skip to content

Commit 0b90f4c

Browse files
committed
Fix for #196: copy clears a part of a subquery
1 parent 7e3b910 commit 0b90f4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MysqliDb.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,9 @@ public static function subQuery($subQueryAlias = "")
10711071
*/
10721072
public function copy ()
10731073
{
1074-
return clone $this;
1074+
$copy = unserialize (serialize ($this));
1075+
$copy->_mysqli = $this->_mysqli;
1076+
return $copy;
10751077
}
10761078

10771079
/**

0 commit comments

Comments
 (0)