From d705c21fa032c91635d9d366783fe391659b1892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Hofman?= Date: Tue, 7 May 2024 18:00:37 +0200 Subject: [PATCH] SNOW-937188 fixes to the unquoting --- Snowflake.Data/Core/Session/SFSession.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Snowflake.Data/Core/Session/SFSession.cs b/Snowflake.Data/Core/Session/SFSession.cs index 788febed2..c5a47438a 100755 --- a/Snowflake.Data/Core/Session/SFSession.cs +++ b/Snowflake.Data/Core/Session/SFSession.cs @@ -482,7 +482,7 @@ internal void UpdateSessionProperty(ref string initialSessionValue, string final string unquotedFinalValue = UnquoteJson(finalSessionValue, ref quoted); if (!string.IsNullOrEmpty(initialSessionValue)) { - quoted |= initialSessionValue.StartsWith('\"'); + quoted |= initialSessionValue.StartsWith("\""); if (!string.Equals(initialSessionValue, unquotedFinalValue, quoted ? StringComparison.Ordinal : StringComparison.InvariantCultureIgnoreCase)) { sessionPropertiesChanged = true;