SQLite3Result::reset

(PHP 5 >= 5.3.0, PHP 7)

SQLite3Result::resetResets the result set back to the first row

Описание

public bool SQLite3Result::reset ( void )

Resets the result set back to the first row.

Список параметров

У этой функции нет параметров.

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

Returns TRUE if the result set is successfully reset back to the first row, FALSE on failure.

Коментарии

I found some odd behavior with this function that isn't mentioned anywhere in the documentation.

If you perform an "INSERT" using SQLite3::query(), it will return an SQLite3Result object. If you then call reset() on this object, it will repeat the INSERT query, creating a duplicate entry in the database.
2017-09-05 21:24:16
http://php5.kiev.ua/manual/ru/sqlite3result.reset.html

    Поддержать сайт на родительском проекте КГБ