Enhance the sqlite3_load_extension() interface to permit extensions to

return SQLITE_OK_LOAD_PERMANENTLY which will prevents unloading when
the database connection closes.

FossilOrigin-Name: 5908aa4dc59925c414b236b6fd3d3ecd7f3da435
This commit is contained in:
drh
2016-06-03 13:35:55 +00:00
5 changed files with 17 additions and 11 deletions
+1
View File
@@ -811,5 +811,6 @@ int sqlite3_vfsstat_init(
if( rc==SQLITE_OK ){
rc = sqlite3_auto_extension((void(*)(void))vstatRegister);
}
if( rc==SQLITE_OK ) rc = SQLITE_OK_LOAD_PERMANENTLY;
return rc;
}