aboutsummaryrefslogtreecommitdiff
path: root/src/tclsqlite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r--src/tclsqlite.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c
index 622208378..0de5a6fd3 100644
--- a/src/tclsqlite.c
+++ b/src/tclsqlite.c
@@ -11,7 +11,7 @@
*************************************************************************
** A TCL Interface to SQLite
**
-** $Id: tclsqlite.c,v 1.170 2006/08/25 23:42:53 drh Exp $
+** $Id: tclsqlite.c,v 1.171 2006/08/29 12:04:19 drh Exp $
*/
#ifndef NO_TCL /* Omit this whole file if TCL is unavailable */
@@ -2073,6 +2073,13 @@ static int DbMain(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){
zArg = Tcl_GetStringFromObj(objv[1], 0);
Tcl_CreateObjCommand(interp, zArg, DbObjCmd, (char*)p, DbDeleteCmd);
+#ifdef SQLITE_ENABLE_FTS1
+ {
+ extern int fulltext_init(sqlite3*);
+ fulltext_init(p->db);
+ }
+#endif
+
/* If compiled with SQLITE_TEST turned on, then register the "md5sum"
** SQL function.
*/