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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user