diff --git a/Command.php b/Command.php index f83ebe1..e66a4de 100644 --- a/Command.php +++ b/Command.php @@ -92,6 +92,7 @@ class Command extends Component { $client = $this->connection->getConnection(); try { + $client->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true); if (($prepare = $client->query($this->sql)) === false) { throw new Exception('(' . $prepare->errorInfo()[0] . ')' . $client->errorInfo()[2]); }