mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Allow backing tables to be missing on dropping fts table. Fixes
http://www.sqlite.org/cvstrac/tktview?tn=1992,35 . (CVS 3509) FossilOrigin-Name: 9628a61a6f33b7bec3455086534b76437d2622b4
This commit is contained in:
@ -2082,7 +2082,9 @@ static int fulltextDestroy(sqlite3_vtab *pVTab){
|
||||
|
||||
TRACE(("FTS1 Destroy %p\n", pVTab));
|
||||
rc = sql_exec(v->db, v->zName,
|
||||
"drop table %_content; drop table %_term");
|
||||
"drop table if exists %_content;"
|
||||
"drop table if exists %_term;"
|
||||
);
|
||||
if( rc!=SQLITE_OK ) return rc;
|
||||
|
||||
fulltext_vtab_destroy((fulltext_vtab *)pVTab);
|
||||
|
@ -2634,9 +2634,9 @@ static int fulltextDestroy(sqlite3_vtab *pVTab){
|
||||
|
||||
TRACE(("FTS2 Destroy %p\n", pVTab));
|
||||
rc = sql_exec(v->db, v->zName,
|
||||
"drop table %_content;"
|
||||
"drop table %_segments;"
|
||||
"drop table %_segdir;"
|
||||
"drop table if exists %_content;"
|
||||
"drop table if exists %_segments;"
|
||||
"drop table if exists %_segdir;"
|
||||
);
|
||||
if( rc!=SQLITE_OK ) return rc;
|
||||
|
||||
|
Reference in New Issue
Block a user