Пример #1
0
 function debug($level = self::DEBUG_ON)
 {
     parent::debug($level);
     if ($this->debugLevel & self::DEBUG_EXPLAIN && $this->isConnected) {
         $this->pdo->exec('SET TRACE ON');
     }
 }
Пример #2
0
 function debug($enable = true, $loggingResult = true, $loggingExplain = true)
 {
     parent::debug($enable = true, $loggingResult = true, $loggingExplain = true);
     if ($this->loggingExplain && $this->isConnected) {
         $this->pdo->exec('SET TRACE ON');
     }
 }