Modify the fts3tokenize table implementation so that it does not use the SQL function fts3_tokenizer. The user may have installed an authorizer callback that prohibits this.

FossilOrigin-Name: 0ba67b64de258883e4c43db09e131bb67083855e
This commit is contained in:
dan
2013-05-07 12:16:48 +00:00
parent 1ba00291a3
commit e8dee7d1ed
6 changed files with 33 additions and 49 deletions
-8
View File
@@ -106,15 +106,7 @@ do_catchsql_test 2.0 {
CREATE VIRTUAL TABLE tX USING fts3tokenize(nosuchtokenizer);
} {1 {unknown tokenizer: nosuchtokenizer}}
proc fts3_tokenizer {args} { return 1 }
db function fts3_tokenizer -argcount 1 fts3_tokenizer
do_catchsql_test 2.1 {
CREATE VIRTUAL TABLE tX USING fts3tokenize(simple);
} {1 {vtable constructor failed: tX}}
db close
sqlite3 db test.db
do_catchsql_test 2.2 {
CREATE VIRTUAL TABLE t4 USING fts3tokenize;
SELECT * FROM t4;
} {1 {SQL logic error or missing database}}