Skip to content

Commit

Permalink
Remove StringComparison.InvariantCulture (not supported by PCL)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Tavera committed Jul 12, 2017
1 parent 665007a commit feca677
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/SQLite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3018,12 +3018,10 @@ private CompileResult CompileExpr (Expression expr, List<object> queryArgs)
{
case StringComparison.Ordinal:
case StringComparison.CurrentCulture:
case StringComparison.InvariantCulture:
sqlCall = "( substr(" + obj.CommandText + ", 1, " + args[0].Value.ToString().Length + ") = " + args[0].CommandText + ")";
break;
case StringComparison.OrdinalIgnoreCase:
case StringComparison.CurrentCultureIgnoreCase:
case StringComparison.InvariantCultureIgnoreCase:
sqlCall = "(" + obj.CommandText + " like (" + args[0].CommandText + " || '%'))";
break;
}
Expand All @@ -3039,12 +3037,10 @@ private CompileResult CompileExpr (Expression expr, List<object> queryArgs)
{
case StringComparison.Ordinal:
case StringComparison.CurrentCulture:
case StringComparison.InvariantCulture:
sqlCall = "( substr(" + obj.CommandText + ", length(" + obj.CommandText + ") - "+args[0].Value.ToString().Length+ "+1, " + args[0].Value.ToString().Length + ") = " + args[0].CommandText + ")";
break;
case StringComparison.OrdinalIgnoreCase:
case StringComparison.CurrentCultureIgnoreCase:
case StringComparison.InvariantCultureIgnoreCase:
sqlCall = "(" + obj.CommandText + " like ('%' || " + args[0].CommandText + "))";
break;
}
Expand Down

0 comments on commit feca677

Please sign in to comment.