MDB_Common::currId()

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

Áttekintés

require_once 'MDB.php';

resource currId (string $seq_name)

Leírás

See "Introduction - Sequences"

Paraméterek

string $seq_name

name of the sequence

Visszatérési érték

resource - a free id or a MDB_Error, if fail

Lehetséges hibaértékek

Táblázat 35-1. Lehetséges PEAR_Error visszatérési értékek

Error codeError messageReasonSolution
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

Megjegyzés

Ez a függvény nem hívható statikusan.

Lásd

createSequence() , dropSequence()