From 92f0c1a9736d4b07c884c53bd6550f547feef10f Mon Sep 17 00:00:00 2001 From: whwyy Date: Wed, 10 Jan 2024 18:12:39 +0800 Subject: [PATCH] eee --- Command.php | 1 + 1 file changed, 1 insertion(+) 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]); }