1
0
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:
shess
2006-11-13 20:15:27 +00:00
parent 448aa6f71a
commit 545311eeca
4 changed files with 15 additions and 13 deletions

View File

@ -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);

View File

@ -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;