aboutsummaryrefslogtreecommitdiff
path: root/src/tclsqlite.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2006-08-29 12:04:19 +0000
committerdrh <drh@noemail.net>2006-08-29 12:04:19 +0000
commit80e8be93372ece57df28978387d0e770bacaafb3 (patch)
tree4df70e8e334e8bde0fd298a15b465c7c755b6029 /src/tclsqlite.c
parentc9e0a9057ed35ce8563c73538bec2f7dc3c8256b (diff)
downloadsqlite-80e8be93372ece57df28978387d0e770bacaafb3.tar.gz
sqlite-80e8be93372ece57df28978387d0e770bacaafb3.zip
Improved built-in help in the command-line shell. Enable the
fulltext search extension in the TCL interface. (CVS 3372) FossilOrigin-Name: 9763b4bfd5f0579f9fb821899ffa8bfe650054d7
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.
*/