Example #1
0
 /**
  * The constructor method.
  *
  * @uses OX_Dal_Maintenance_Statistics::OX_Dal_Maintenance_Statistics()
  */
 function __construct()
 {
     parent::__construct();
     // Store the original MySQL sort_buffer_size value
     $query = "SHOW SESSION VARIABLES like 'sort_buffer_size'";
     $rc = $this->oDbh->query($query);
     if (PEAR::isError($rc)) {
         MAX::raiseError($rc, MAX_ERROR_DBFAILURE, PEAR_ERROR_DIE);
     }
     $aRow = $rc->fetchRow();
     if (is_array($aRow) && count($aRow) == 2 && isset($aRow['Value'])) {
         $this->sortBufferSize = $aRow['Value'];
     }
 }
Example #2
0
 /**
  * The constuctor method.
  *
  * @return OX_Dal_Maintenance_Statistics_Pgsql
  */
 function __construct()
 {
     $this->timestampCastString = '::timestamp';
     parent::__construct();
 }