Jean-Christophe, But did I say that GLOB uses an index if it has been overloaded? No. I wrote that if LIKE has been overloaded, queries that contain LIKE won't use the index. Typically, GLOB won't have been overridden too just because LIKE has been overridden: the rationale for overriding the LIKE operator does not apply equally to GLOB, and it would make little sense to override GLOB in a manner that vitiates its raison d'être. You are conflating these two functions ("... if LIKE/GLOB has been overridden... overloads LIKE/GLOB") but in important respects they are dissimilar.
Regards Tim Romano On Mon, Apr 26, 2010 at 8:27 PM, Jean-Christophe Deschamps <j...@q-e-d.org>wrote: > Tim, > > >Queries using GLOB do use the index on the column in question (i.e. > >optimization is attempted) > >Queries using LIKE do not use that index if the LIKE operator has been > >overridden. > > Sorry but GLOB doesn't use an index either if LIKE/GLOB has been > overloaded. This is consistent with the docs and the output of Explain > query plan for both variants when an extension is active and overloads > LIKE/GLOB. > > Things can be different with a custom built of SQLite, where native > LIKE/GLOB itself has been modified. With custom code, all bets are off. > > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users