previousMDB_Common::createSequence() (Previous) (Next) MDB_Common::disconnect()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

MDB_Common::currId()

MDB_Common::currId() – returns the current free id of a sequence

Synopsis

require_once 'MDB.php';

resource currId ( string $seq_name )

Parameter

string $seq_name

name of the sequence

Return value

resource - a free id or a MDB_Error, if fail

Throws

Possible PEAR_Error values
Error code Error message Reason Solution
MDB_ERROR_NOT_CAPABLE NULL Function is not supported by the database backend Switch to another database system, if you really need this feature.
MDB_ERROR_NOT_LOCKED NULL Locking of sequence table fails Database specific, check documention of your database,
MDB_ERROR_NOSUCHTABLE NULL Sequence table was not found Try to create a new sequence or if you are sure, a sequence was already create, check database integrity

Note

This function can not be called statically.

previousMDB_Common::createSequence() (Previous) (Next) MDB_Common::disconnect()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.