mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Fix a bug parsing "<expr> AND (abc NEAR def)" in fts3_expr.c. (CVS 6091)
FossilOrigin-Name: d1a6a2edd799d65ff88510df951e909919e35b6b
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this script is testing the FTS3 module.
|
||||
#
|
||||
# $Id: fts3expr.test,v 1.1 2008/12/17 15:18:18 danielk1977 Exp $
|
||||
# $Id: fts3expr.test,v 1.2 2009/01/01 04:19:51 danielk1977 Exp $
|
||||
#
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
@ -119,6 +119,10 @@ do_test fts3expr-3.4 {
|
||||
test_fts3expr2 "(((ab OR cd)))"
|
||||
} {OR ab cd}
|
||||
|
||||
do_test fts3expr-3.5 {
|
||||
test_fts3expr2 "one AND (two NEAR three)"
|
||||
} {AND one {NEAR/10 two three}}
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
# The following tests, fts3expr-4.*, test the parsers response to syntax
|
||||
# errors in query expressions. This is done using a real fts3 table and
|
||||
|
Reference in New Issue
Block a user