function DB_pgsql::pgsqlRaiseError in Flickr API 5
Produces a DB_Error object regarding the current problem
DB_pgsql::errorNative(), DB_pgsql::errorCode()
Parameters
int $errno if the error is being manually raised pass a: DB_ERROR* constant here. If this isn't passed the error information gathered from the DBMS.
Return value
object the DB_Error object
See also
6 calls to DB_pgsql::pgsqlRaiseError()
- DB_pgsql::commit in phpFlickr/
PEAR/ DB/ pgsql.php - Commits the current transaction
- DB_pgsql::numCols in phpFlickr/
PEAR/ DB/ pgsql.php - Gets the number of columns in a result set
- DB_pgsql::numRows in phpFlickr/
PEAR/ DB/ pgsql.php - Gets the number of rows in a result set
- DB_pgsql::rollback in phpFlickr/
PEAR/ DB/ pgsql.php - Reverts the current transaction
- DB_pgsql::simpleQuery in phpFlickr/
PEAR/ DB/ pgsql.php - Sends a query to the database server
File
- phpFlickr/
PEAR/ DB/ pgsql.php, line 778
Class
- DB_pgsql
- The methods PEAR DB uses to interact with PHP's pgsql extension for interacting with PostgreSQL databases
Code
function pgsqlRaiseError($errno = null) {
$native = $this
->errorNative();
if ($errno === null) {
$errno = $this
->errorCode($native);
}
return $this
->raiseError($errno, null, null, null, $native);
}