Skip to content

Commit dff3a8a

Browse files
authored
Merge pull request #2235 from pjy612/fix_sqllike
Thanks!
2 parents 78811ab + 23694f4 commit dff3a8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

LiteDB/Utils/Extensions/StringExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ public static bool SqlLike(this string str, string pattern, Collation collation)
148148
{
149149
if (lastWildCard >= 0)
150150
{
151+
int back = patternIndex - lastWildCard - 1;
152+
i -= back;
151153
patternIndex = lastWildCard;
152154
}
153155
else

0 commit comments

Comments
 (0)