diff --git a/src/DB/Driver/PdoDriver.php b/src/DB/Driver/PdoDriver.php index fba3895..5a7b0a1 100644 --- a/src/DB/Driver/PdoDriver.php +++ b/src/DB/Driver/PdoDriver.php @@ -116,8 +116,8 @@ public function simpleQuery($query) // enable/disable result_buffering in mysql // @codeCoverageIgnoreStart - if (($this->getPlatform() === 'mysql') && !$this->options['result_buffering']) { - $queryDriverOptions[PDO::MYSQL_ATTR_USE_BUFFERED_QUERY] = false; + if ($this->getPlatform() === 'mysql') { + $this->connection->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, $this->options['result_buffering'] ? true : false); } // @codeCoverageIgnoreEnd