From: drh Date: Tue, 22 Jul 2014 16:00:49 +0000 (+0000) Subject: Fix the index name for the shadow tables in the spellfix1 extension so that X-Git-Tag: version-3.8.6~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f5d87f77e2a3d1b34cb67539ea0c172cb811120a;p=thirdparty%2Fsqlite.git Fix the index name for the shadow tables in the spellfix1 extension so that multiple instances of the spellfix1 virtual table can each have their own index. FossilOrigin-Name: 438c348a40383796a710499e4e1b7a6b08f75778 --- diff --git a/ext/misc/spellfix.c b/ext/misc/spellfix.c index a62d24c592..2e6743e4f7 100644 --- a/ext/misc/spellfix.c +++ b/ext/misc/spellfix.c @@ -1893,7 +1893,7 @@ static int spellfix1Init( char **pzErr ){ spellfix1_vtab *pNew = 0; - const char *zModule = argv[0]; + /* const char *zModule = argv[0]; // not used */ const char *zDbName = argv[1]; const char *zTableName = argv[2]; int nDbName; @@ -1947,7 +1947,7 @@ static int spellfix1Init( spellfix1DbExec(&rc, db, "CREATE INDEX IF NOT EXISTS \"%w\".\"%w_vocab_index_langid_k2\" " "ON \"%w_vocab\"(langid,k2);", - zDbName, zModule, zTableName + zDbName, zTableName, zTableName ); } for(i=3; rc==SQLITE_OK && i