diff options
author | mistachkin <mistachkin@noemail.net> | 2015-11-24 01:17:01 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2015-11-24 01:17:01 +0000 |
commit | a9124d359b4fe798a0d1ed3531427c4012b1ff2e (patch) | |
tree | 83b4cd0644a9c4bd129e7d1bb9e1dcb670f5c995 /src | |
parent | 3d4143a38a374e092ff6e41b99549f05b5d6dcf0 (diff) | |
download | sqlite-a9124d359b4fe798a0d1ed3531427c4012b1ff2e.tar.gz sqlite-a9124d359b4fe798a0d1ed3531427c4012b1ff2e.zip |
Add a clarifying comment to the virtual table test module 'test8'.
FossilOrigin-Name: e92f97a6794440eb9d64e21218d39cb0e297a98e
Diffstat (limited to 'src')
-rw-r--r-- | src/test8.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test8.c b/src/test8.c index 2107710a9..7d3756aec 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; } if( zOp[0]=='L' ){ |