From: drh Date: Thu, 6 Feb 2014 13:18:51 +0000 (+0000) Subject: Change the spellfix1 virtual table to deterministically names its shadow X-Git-Tag: version-3.8.4~103 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0211d8bca4ddab5a0d4a1f5299c3cb7cd6effe7d;p=thirdparty%2Fsqlite.git Change the spellfix1 virtual table to deterministically names its shadow tables. FossilOrigin-Name: 5219cdfc56ec3e1cd645ae6443ba72ce0df0339a --- diff --git a/ext/misc/spellfix.c b/ext/misc/spellfix.c index 4be73bb39e..d33740bf6d 100644 --- a/ext/misc/spellfix.c +++ b/ext/misc/spellfix.c @@ -1933,7 +1933,6 @@ static int spellfix1Init( #define SPELLFIX_COL_COMMAND 11 } if( rc==SQLITE_OK && isCreate ){ - sqlite3_uint64 r; spellfix1DbExec(&rc, db, "CREATE TABLE IF NOT EXISTS \"%w\".\"%w_vocab\"(\n" " id INTEGER PRIMARY KEY,\n" @@ -1945,11 +1944,10 @@ static int spellfix1Init( ");\n", zDbName, zTableName ); - sqlite3_randomness(sizeof(r), &r); spellfix1DbExec(&rc, db, - "CREATE INDEX IF NOT EXISTS \"%w\".\"%w_index_%llx\" " + "CREATE INDEX IF NOT EXISTS \"%w\".\"%w_vocab_index_langid_k2\" " "ON \"%w_vocab\"(langid,k2);", - zDbName, zModule, r, zTableName + zDbName, zModule, zTableName ); } for(i=3; rc==SQLITE_OK && i