Example #1
0
 protected function loadDump()
 {
     if (!$this->sql) {
         return;
     }
     try {
         $this->driver->load($this->sql);
     } catch (\PDOException $e) {
         throw new \Codeception\Exception\Module(__CLASS__, $e->getMessage());
     }
 }
Example #2
0
 protected function loadDump()
 {
     if (!$this->sql) {
         return;
     }
     try {
         $this->driver->load($this->sql);
     } catch (\PDOException $e) {
         throw new ModuleException(__CLASS__, $e->getMessage() . "\nSQL query being executed: " . $this->driver->sqlToRun);
     }
 }