You are here

protected function OAuthStorePostgreSQL::query in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/store/OAuthStorePostgreSQL.php \OAuthStorePostgreSQL::query()
  2. 7.2 lib/oauth-php/library/store/OAuthStorePostgreSQL.php \OAuthStorePostgreSQL::query()
  3. 7.4 lib/oauth-php/library/store/OAuthStorePostgreSQL.php \OAuthStorePostgreSQL::query()
  4. 7.5 lib/oauth-php/library/store/OAuthStorePostgreSQL.php \OAuthStorePostgreSQL::query()
  5. 7.6 lib/oauth-php/library/store/OAuthStorePostgreSQL.php \OAuthStorePostgreSQL::query()

Perform a query, ignore the results

Parameters

string sql:

vararg arguments (for sprintf):

16 calls to OAuthStorePostgreSQL::query()
OAuthStorePostgreSQL::addConsumerRequestToken in lib/oauth-php/library/store/OAuthStorePostgreSQL.php
Add an unautorized request token to our server.
OAuthStorePostgreSQL::addLog in lib/oauth-php/library/store/OAuthStorePostgreSQL.php
Add an entry to the log table
OAuthStorePostgreSQL::addServerToken in lib/oauth-php/library/store/OAuthStorePostgreSQL.php
Add a request token we obtained from a server.
OAuthStorePostgreSQL::authorizeConsumerRequestToken in lib/oauth-php/library/store/OAuthStorePostgreSQL.php
Upgrade a request token to be an authorized request token.
OAuthStorePostgreSQL::checkServerNonce in lib/oauth-php/library/store/OAuthStorePostgreSQL.php
Check an nonce/timestamp combination. Clears any nonce combinations that are older than the one received.

... See full list

File

lib/oauth-php/library/store/OAuthStorePostgreSQL.php, line 1758

Class

OAuthStorePostgreSQL

Code

protected function query($sql) {
  $sql = $this
    ->sql_printf(func_get_args());
  if (!($res = pg_query($this->conn, $sql))) {
    $this
      ->sql_errcheck($sql);
  }
  $this->_lastAffectedRows = pg_affected_rows($res);
  if (is_resource($res)) {
    pg_free_result($res);
  }
}