You are here

protected function OAuthStorePDO::sql_errcheck in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::sql_errcheck()
  2. 7.2 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::sql_errcheck()
  3. 7.3 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::sql_errcheck()
  4. 7.4 lib/oauth-php/library/store/OAuthStorePDO.php \OAuthStorePDO::sql_errcheck()
  5. 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

OAuthStorePDO

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);
}