mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-17 13:45:05 +00:00
fix: temp fix for 4-series shenanagans
This commit is contained in:
committed by
Chris Cameron
parent
dbad18925f
commit
4de7944286
@@ -428,18 +428,13 @@ namespace ICD.Common.Utils.Globalization
|
||||
}
|
||||
|
||||
s_SqlConnectionString = string.Format(SQL_CONNECTION_STRING_FORMAT, databasePath);
|
||||
using (IcdSqliteConnection sQLiteConnection = new IcdSqliteConnection(s_SqlConnectionString))
|
||||
{
|
||||
try
|
||||
{
|
||||
sQLiteConnection.Open();
|
||||
}
|
||||
catch (Exception)
|
||||
using (IcdSqliteConnection sQLiteConnection = new IcdSqliteConnection(s_SqlConnectionString))
|
||||
{
|
||||
s_IsDatabasePresent = false;
|
||||
return;
|
||||
}
|
||||
sQLiteConnection.Open();
|
||||
s_IsDatabasePresent = true;
|
||||
|
||||
IcdSqliteCommand sQLiteCommand = new IcdSqliteCommand("select count(*) from cultureinfo", sQLiteConnection);
|
||||
int num = Convert.ToInt32(sQLiteCommand.ExecuteScalar());
|
||||
s_AvailableCultureNames = new string[num + 1];
|
||||
@@ -470,6 +465,12 @@ namespace ICD.Common.Utils.Globalization
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
s_IsDatabasePresent = false;
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (string name in builtinCultures)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user