Skip to content

Commit feca677

Browse files
author
Andrew Tavera
committed
Remove StringComparison.InvariantCulture (not supported by PCL)
1 parent 665007a commit feca677

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/SQLite.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3018,12 +3018,10 @@ private CompileResult CompileExpr (Expression expr, List<object> queryArgs)
30183018
{
30193019
case StringComparison.Ordinal:
30203020
case StringComparison.CurrentCulture:
3021-
case StringComparison.InvariantCulture:
30223021
sqlCall = "( substr(" + obj.CommandText + ", 1, " + args[0].Value.ToString().Length + ") = " + args[0].CommandText + ")";
30233022
break;
30243023
case StringComparison.OrdinalIgnoreCase:
30253024
case StringComparison.CurrentCultureIgnoreCase:
3026-
case StringComparison.InvariantCultureIgnoreCase:
30273025
sqlCall = "(" + obj.CommandText + " like (" + args[0].CommandText + " || '%'))";
30283026
break;
30293027
}
@@ -3039,12 +3037,10 @@ private CompileResult CompileExpr (Expression expr, List<object> queryArgs)
30393037
{
30403038
case StringComparison.Ordinal:
30413039
case StringComparison.CurrentCulture:
3042-
case StringComparison.InvariantCulture:
30433040
sqlCall = "( substr(" + obj.CommandText + ", length(" + obj.CommandText + ") - "+args[0].Value.ToString().Length+ "+1, " + args[0].Value.ToString().Length + ") = " + args[0].CommandText + ")";
30443041
break;
30453042
case StringComparison.OrdinalIgnoreCase:
30463043
case StringComparison.CurrentCultureIgnoreCase:
3047-
case StringComparison.InvariantCultureIgnoreCase:
30483044
sqlCall = "(" + obj.CommandText + " like ('%' || " + args[0].CommandText + "))";
30493045
break;
30503046
}

0 commit comments

Comments
 (0)