This commit is contained in:
2024-01-10 18:12:39 +08:00
parent 11ad7217c2
commit 92f0c1a973
+1
View File
@@ -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]);
}