Skip to content

Commit

Permalink
Merge pull request #2235 from pjy612/fix_sqllike
Browse files Browse the repository at this point in the history
Thanks!
  • Loading branch information
mbdavid authored Mar 9, 2023
2 parents 78811ab + 23694f4 commit dff3a8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LiteDB/Utils/Extensions/StringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ public static bool SqlLike(this string str, string pattern, Collation collation)
{
if (lastWildCard >= 0)
{
int back = patternIndex - lastWildCard - 1;
i -= back;
patternIndex = lastWildCard;
}
else
Expand Down

0 comments on commit dff3a8a

Please sign in to comment.