sqlite3_finalize()

前端之家收集整理的这篇文章主要介绍了sqlite3_finalize()前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

@H_404_3@Destroy A Prepared Statement Object

@H_404_3@int sqlite3_finalize(sqlite3_stmt *pStmt);

@H_404_3@The sqlite3_finalize() function is called to delete aprepared statement. If the most recent evaluation of the statement encountered no errors or if the statement is never been evaluated,then sqlite3_finalize() returns sqlITE_OK. If the most recent evaluation of statement S Failed,then sqlite3_finalize(S) returns the appropriateerror codeorextended error code.

@H_404_3@The sqlite3_finalize(S) routine can be called at any point during the life cycle ofprepared statementS: before statement S is ever evaluated,after one or more calls tosqlite3_reset(),or after any call tosqlite3_step()regardless of whether or not the statement has completed execution.

@H_404_3@Invoking sqlite3_finalize() on a NULL pointer is a harmless no-op.

@H_404_3@The application must finalize everyprepared statementin order to avoid resource leaks. It is a grievous error for the application to try to use a prepared statement after it has been finalized. Any use of a prepared statement after it has been finalized can result in undefined and undesirable behavior such as segfaults and heap corruption.

@H_404_3@See also lists ofObjects,Constants,andFunctions.

猜你在找的Sqlite相关文章