ScotlandPHP

SQLite3Result::reset

(PHP 5 >= 5.3.0, PHP 7)

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

Descrizione

public bool SQLite3Result::reset ( void )

Resets the result set back to the first row.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

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

add a note add a note

User Contributed Notes 1 note

up
0
aj at saunderselectric dot com
1 month ago
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.
To Top