protected function OAuthStorePDO::sql_errcheck in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::sql_errcheck()
- 7.2 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::sql_errcheck()
- 7.3 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::sql_errcheck()
- 7.4 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::sql_errcheck()
- 7.5 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::sql_errcheck()
Overrides OAuthStoreSQL::sql_errcheck
3 calls to OAuthStorePDO::sql_errcheck()
- OAuthStorePDO::query in lib/
oauth-php/ library/ store/ OAuthStorePDO.php - * Perform a query, ignore the results * *
- OAuthStorePDO::query_all_assoc in lib/
oauth-php/ library/ store/ OAuthStorePDO.php - * Perform a query, ignore the results * *
- OAuthStorePDO::query_row in lib/
oauth-php/ library/ store/ OAuthStorePDO.php - * Perform a query, return the first row * *
File
- lib/
oauth-php/ library/ store/ OAuthStorePDO.php, line 252
Class
Code
protected function sql_errcheck($sql) {
$msg = "SQL Error in OAuthStoreMySQL: " . print_r($this->conn
->errorInfo(), true) . "\n\n" . $sql;
$backtrace = debug_backtrace();
$msg .= "\n\nAt file " . $backtrace[1]['file'] . ", line " . $backtrace[1]['line'];
throw new OAuthException2($msg);
}