mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Experimental changes to fts3 function matchinfo().
FossilOrigin-Name: 9cf0f2b76bc68c168e3fa861b7235f384db21d38
This commit is contained in:
@ -152,8 +152,6 @@ do_select_tests 5.2 -errorformat {
|
||||
wrong number of arguments to function %s()
|
||||
} {
|
||||
1 "SELECT matchinfo() FROM t2 WHERE t2 MATCH 'history'" matchinfo
|
||||
2 "SELECT matchinfo(t2, t2) FROM t2 WHERE t2 MATCH 'history'" matchinfo
|
||||
|
||||
3 "SELECT snippet(t2, 1, 2, 3, 4, 5, 6) FROM t2 WHERE t2 MATCH 'history'"
|
||||
snippet
|
||||
}
|
||||
@ -174,8 +172,13 @@ do_select_tests 5.4 -errorformat {
|
||||
3 "SELECT snippet(content) FROM t2 WHERE t2 MATCH 'history'" snippet
|
||||
4 "SELECT optimize(content) FROM t2 WHERE t2 MATCH 'history'" optimize
|
||||
}
|
||||
do_catchsql_test 5.5.1 {
|
||||
SELECT matchinfo(t2, 'abc') FROM t2 WHERE t2 MATCH 'history'
|
||||
} {1 {unrecognized matchinfo request: b}}
|
||||
|
||||
do_execsql_test 5.5 { DROP TABLE t2 }
|
||||
|
||||
|
||||
# Test the snippet() function with 1 to 6 arguments.
|
||||
#
|
||||
do_execsql_test 6.1 {
|
||||
|
Reference in New Issue
Block a user