aboutsummaryrefslogtreecommitdiff
path: root/src/test8.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2015-11-24 17:44:26 +0000
committerdan <dan@noemail.net>2015-11-24 17:44:26 +0000
commit898f70bc28c4536a3b42c93d7d7aa8f68ca78c8a (patch)
tree2c8933075b41ad356d6b5904fb8e7ba5601818ef /src/test8.c
parent43970dd7745c3fdb258ce6bb86971fd5ce87cfdf (diff)
parent5a8d190b9ecf9e38857bfa77440a4e9c91aa28e3 (diff)
downloadsqlite-898f70bc28c4536a3b42c93d7d7aa8f68ca78c8a.tar.gz
sqlite-898f70bc28c4536a3b42c93d7d7aa8f68ca78c8a.zip
Merge latest trunk changes with this branch.
FossilOrigin-Name: 99222bb3e5f9b2a9a10d9561a9fd8c0f717baaff
Diffstat (limited to 'src/test8.c')
-rw-r--r--src/test8.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test8.c b/src/test8.c
index 6d70c3042..0c5dc0206 100644
--- a/src/test8.c
+++ b/src/test8.c
@@ -848,6 +848,13 @@ static int echoBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){
case SQLITE_INDEX_CONSTRAINT_GE:
zOp = ">="; break;
case SQLITE_INDEX_CONSTRAINT_MATCH:
+ /* Purposely translate the MATCH operator into a LIKE, which
+ ** will be used by the next block of code to construct a new
+ ** query. It should also be noted here that the next block
+ ** of code requires the first letter of this operator to be
+ ** in upper-case to trigger the special MATCH handling (i.e.
+ ** wrapping the bound parameter with literal '%'s).
+ */
zOp = "LIKE"; break;
case SQLITE_INDEX_CONSTRAINT_LIKE:
zOp = "like"; break;