From feca677531a182d9cec06ed9eb229b50226ac07f Mon Sep 17 00:00:00 2001 From: Andrew Tavera Date: Wed, 12 Jul 2017 16:22:36 -0400 Subject: [PATCH] Remove StringComparison.InvariantCulture (not supported by PCL) --- src/SQLite.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/SQLite.cs b/src/SQLite.cs index 4735f532..a90df278 100644 --- a/src/SQLite.cs +++ b/src/SQLite.cs @@ -3018,12 +3018,10 @@ private CompileResult CompileExpr (Expression expr, List 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; } @@ -3039,12 +3037,10 @@ private CompileResult CompileExpr (Expression expr, List 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; }