1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Convert all names to lower case before sending them to the xFindFunction

method of a virtual table.  In FTS1, use strcmp instead of strcasecmp.
Ticket #1981. (CVS 3428)

FossilOrigin-Name: efa8fb32a596c7232bb1754b3231e4f2421df75b
This commit is contained in:
drh
2006-09-18 20:24:02 +00:00
parent b08249ced3
commit a70034de7c
4 changed files with 24 additions and 13 deletions

View File

@ -2886,10 +2886,10 @@ static int fulltextFindFunction(
void (**pxFunc)(sqlite3_context*,int,sqlite3_value**),
void **ppArg
){
if( strcasecmp(zName,"snippet")==0 ){
if( strcmp(zName,"snippet")==0 ){
*pxFunc = snippetFunc;
return 1;
}else if( strcasecmp(zName,"offsets")==0 ){
}else if( strcmp(zName,"offsets")==0 ){
*pxFunc = snippetOffsetsFunc;
return 1;
}