]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Added option to PDO database connection
authorDavide Franco <bacula-dev@dflc.ch>
Mon, 18 Jul 2011 07:26:20 +0000 (09:26 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:25 +0000 (14:49 +0200)
gui/bacula-web/includes/db/cdb.class.php

index cb2cbc0c9e11bbfe987edb706a2ef1b4f610429e..f46931c6dfb6e4636d7f72da002f67a387027c66 100644 (file)
@@ -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()