See bellow the setLikeOptFlag internal function, if we have installed custom "like" functions what would be the return value of "sqlite3FindFunction" be ?
It seems that it needs to add the collation also to be able to find the correct function to set the flags. /* ** Set the LIKEOPT flag on the 2-argument function with the given name. */ static void setLikeOptFlag(sqlite3 *db, const char *zName, u8 flagVal){ ? FuncDef *pDef; ? pDef = sqlite3FindFunction(db, zName, 2, SQLITE_UTF8, 0); ? if( ALWAYS(pDef) ){ ??? pDef->funcFlags |= flagVal; ? } } Cheers !