You are here

function DB_pgsql::dropSequence in Flickr API 5

Deletes a sequence

DB_pgsql::nextID(), DB_pgsql::createSequence()

Parameters

string $seq_name name of the sequence to be deleted:

Return value

int DB_OK on success. A DB_Error object on failure.

Overrides DB_common::dropSequence

See also

DB_common::dropSequence(), DB_common::getSequenceName(),

File

phpFlickr/PEAR/DB/pgsql.php, line 733

Class

DB_pgsql
The methods PEAR DB uses to interact with PHP's pgsql extension for interacting with PostgreSQL databases

Code

function dropSequence($seq_name) {
  return $this
    ->query('DROP SEQUENCE ' . $this
    ->getSequenceName($seq_name));
}