diff --git a/CHANGELOG.md b/CHANGELOG.md index a466d33..5468982 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Changed - Fixed an issue in IcdUriBuilder where relative pathes were not being built into a valid URI. +## [16.0.1] 2021-10-28 +### Changed + - Changed sqlite connection strings in IcdCultureInfo & IcdTimeZoneInfo to work with SimplSharp. + ## [16.0.0] 2021-10-04 ### Added - Added IcdAutoResetEvent and IcdManaualResetEvent diff --git a/ICD.Common.Utils/Globalization/IcdCultureInfo.cs b/ICD.Common.Utils/Globalization/IcdCultureInfo.cs index 5f33a2a..035981b 100644 --- a/ICD.Common.Utils/Globalization/IcdCultureInfo.cs +++ b/ICD.Common.Utils/Globalization/IcdCultureInfo.cs @@ -96,11 +96,8 @@ namespace ICD.Common.Utils.Globalization { private const string SQL_LOCAL_DATABASE_FILE = "CultureInfo.sqlite"; private const string SQL_CONNECTION_STRING_FORMAT = -#if SIMPLSHARP - "Data Source={0};Version=3;ReadOnly=True"; -#else "Data Source={0}"; -#endif + private const string SQL_CMD_SELECT_BY_NAME = "select * from cultureinfo where name = @name collate nocase"; private const string SQL_CMD_SELECT_BY_LCID = "select * from cultureinfo where lcid = @lcid"; private const string SQL_CMD_SELECT_BY_ID = "select * from cultureinfo where id = @id"; @@ -466,8 +463,9 @@ namespace ICD.Common.Utils.Globalization } } } - catch (Exception) + catch (Exception e) { + IcdErrorLog.Exception(e, "Error populating IcdCultureInfo cache - {0}", e.Message); s_IsDatabasePresent = false; return; } diff --git a/ICD.Common.Utils/Properties/AssemblyInfo.cs b/ICD.Common.Utils/Properties/AssemblyInfo.cs index 79181bb..bb5f686 100644 --- a/ICD.Common.Utils/Properties/AssemblyInfo.cs +++ b/ICD.Common.Utils/Properties/AssemblyInfo.cs @@ -4,4 +4,4 @@ using System.Reflection; [assembly: AssemblyCompany("ICD Systems")] [assembly: AssemblyProduct("ICD.Common.Utils")] [assembly: AssemblyCopyright("Copyright © ICD Systems 2021")] -[assembly: AssemblyVersion("16.0.0.0")] +[assembly: AssemblyVersion("16.0.1.0")] diff --git a/ICD.Common.Utils/TimeZoneInfo/IcdTimeZoneInfo.cs b/ICD.Common.Utils/TimeZoneInfo/IcdTimeZoneInfo.cs index cbeb900..5d15110 100644 --- a/ICD.Common.Utils/TimeZoneInfo/IcdTimeZoneInfo.cs +++ b/ICD.Common.Utils/TimeZoneInfo/IcdTimeZoneInfo.cs @@ -18,11 +18,7 @@ namespace ICD.Common.Utils.TimeZoneInfo private const string SQL_LOCAL_DATABASE_FILE = "TimeZones.sqlite"; private const string SQL_CONNECTION_STRING_FORMAT = -#if SIMPLSHARP - "Data Source={0};Version=3;ReadOnly=True"; -#else "Data Source={0}"; -#endif private static readonly Dictionary s_Cache;