1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Add a clarifying comment to the virtual table test module 'test8'.

FossilOrigin-Name: e92f97a6794440eb9d64e21218d39cb0e297a98e
This commit is contained in:
mistachkin
2015-11-24 01:17:01 +00:00
parent 3d4143a38a
commit a9124d359b
3 changed files with 15 additions and 8 deletions

View File

@@ -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' ){