Small. Fast. Reliable.
Choose any three.
Search for:

SQLite C Interface

Close A BLOB Handle

int sqlite3_blob_close(sqlite3_blob *);

R-03145-46390:[This function closes an open BLOB handle. ] R-37801-37633:[The BLOB handle is closed unconditionally. Even if this routine returns an error code, the handle is still closed. ]

R-34027-00617:[If the blob handle being closed was opened for read-write access, and if the database is in auto-commit mode and there are no other open read-write blob handles or active write statements, the current transaction is committed. ] R-35111-05628:[If an error occurs while committing the transaction, an error code is returned and the transaction rolled back. ]

Calling this function with an argument that is not a NULL pointer or an open blob handle results in undefined behaviour. R-25894-51060:[Calling this routine with a null pointer (such as would be returned by a failed call to sqlite3_blob_open()) is a harmless no-op. ] R-41959-38737:[Otherwise, if this function is passed a valid open blob handle, the values returned by the sqlite3_errcode() and sqlite3_errmsg() functions are set before returning. ]

See also lists of Objects, Constants, and Functions.