Skip to content

Commit

Permalink
Added method
Browse files Browse the repository at this point in the history
Added ability to import SQL files with error handling.
  • Loading branch information
coden0rth committed Mar 26, 2016
1 parent b7b8257 commit 5d5014c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PastaDB.php
Expand Up @@ -86,7 +86,7 @@ public function ImportSQL($Filepath)
} while ($this->DBH->more_results());
}
if ($this->DBH->errno) {
$this->_setSQLiError($this->DBC->errno, 'Query #' . ($i + 1) . ' of ' . $Filepath . ': (' . $sqlSourceArray[$i] . ') has error: ' . $this->DBC->error);
$this->_setSQLiError($this->DBH->errno, 'Query #' . ($i + 1) . ' of ' . $Filepath . ': (' . $sqlSourceArray[$i] . ') has error: ' . $this->DBH->error);
return false;
} else {
return true;
Expand Down

0 comments on commit 5d5014c

Please sign in to comment.