From: Davide Franco Date: Mon, 18 Jul 2011 07:26:20 +0000 (+0200) Subject: bacula-web: Added option to PDO database connection X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=23ea042fb56d8aad63a5248e78c49e71fff66cf2;p=bacula%2Fbacula bacula-web: Added option to PDO database connection --- diff --git a/gui/bacula-web/includes/db/cdb.class.php b/gui/bacula-web/includes/db/cdb.class.php index cb2cbc0c9e..f46931c6df 100644 --- a/gui/bacula-web/includes/db/cdb.class.php +++ b/gui/bacula-web/includes/db/cdb.class.php @@ -34,7 +34,8 @@ class CDB $this->options = array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_CASE => PDO::CASE_LOWER, - PDO::ATTR_STATEMENT_CLASS => array('CDBResult', array($this) ) ); + PDO::ATTR_STATEMENT_CLASS => array('CDBResult', array($this) ), + PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true ); } public function makeConnection()