Skip to content

Commit

Permalink
set result buffering options on connection handle
Browse files Browse the repository at this point in the history
ref issue #50
  • Loading branch information
borb committed May 2, 2017
1 parent d6ce278 commit ae4905d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DB/Driver/PdoDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ae4905d

Please sign in to comment.