Message404178
From https://sqlite.org/c3ref/close.html:
If sqlite3_close_v2() is called with unfinalized prepared statements,
unclosed BLOB handlers, and/or unfinished sqlite3_backups, it returns
SQLITE_OK regardless, but instead of deallocating the database connection
immediately, it marks the database connection as an unusable "zombie" and
makes arrangements to automatically deallocate the database connection after
all prepared statements are finalized, all BLOB handles are closed, and all
backups have finished. The sqlite3_close_v2() interface is intended for use
with host languages that are garbage collected, and where the order in which
destructors are called is arbitrary.
Also:
Calling sqlite3_close() or sqlite3_close_v2() with a NULL pointer argument
is a harmless no-op. |
|
Date |
User |
Action |
Args |
2021-10-18 11:42:47 | erlendaasland | set | recipients:
+ erlendaasland, ghaering, serhiy.storchaka, scorp |
2021-10-18 11:42:47 | erlendaasland | set | messageid: <1634557367.34.0.38640276725.issue26387@roundup.psfhosted.org> |
2021-10-18 11:42:47 | erlendaasland | link | issue26387 messages |
2021-10-18 11:42:47 | erlendaasland | create | |
|