Added MYSQL_ATTR_USE_BUFFERED_QUERY driver option with value true for mysql/maria connections

This commit is contained in:
Alejandro Celaya
2020-04-18 13:21:46 +02:00
parent 078c8ea011
commit 7c6827ea9f
4 changed files with 5 additions and 1 deletions

View File

@@ -41,6 +41,8 @@ $helper = new class {
$driverOptions = ! contains(['maria', 'mysql'], $driver) ? [] : [
// 1002 -> PDO::MYSQL_ATTR_INIT_COMMAND
1002 => 'SET NAMES utf8',
// 1000 -> PDO::MYSQL_ATTR_USE_BUFFERED_QUERY
1000 => true,
];
return [
'driver' => self::DB_DRIVERS_MAP[$driver],