MDB_Common::setFetchMode()

MDB_Common::setFetchMode() -- sets the default fetch mode

Synopsis

require_once 'MDB.php';

void setFetchMode (integer $fetchmode, string [$object_class = NULL])

Описание

Sets the fetch mode used by default on queries for the connection.

Параметр

integer $fetchmode

MDB_FETCHMODE_ORDEREDor MDB_FETCHMODE_ASSOC, all possibly bit-wise OR'ed with MDB_FETCHMODE_FLIPPED. See "Introduction - Fetch" for further information.

Возвращаемое значение

void - NULL, if ok(!)

Throws

Таблица 34-1. Возможные значения PEAR_Error

Error codeError messageReasonSolution
NULL invalid fetchmode mode The given fetch mode does not exists or is not implement in your MDB_Error version. Check writing of the argument and your used version of MDB.

Заметка

Эта функция не должна вызываться статически.


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ