* One more item for CSharpSqlite
* Hopefully this will enable mac people to use SQLite again * Someone cooler then me will need to figure out how to define CSharpSqlite with Mono so the conditional will pick up. * There's also an error that occurs when you first load OpenSimulator under CSharpSQLite that goes away after. * The databases are not byte for byte compatible. Mono.Data.Sqlite is able to read CSharpSqlite made databases but not the reverse way.viewer-2-initial-appearance
parent
983c6a74b1
commit
acd5bbdb71
|
@ -109,10 +109,17 @@ namespace OpenSim.Data.SQLite
|
|||
{
|
||||
EstateSettings es = new EstateSettings();
|
||||
es.OnSave += StoreEstateSettings;
|
||||
IDataReader r = null;
|
||||
try
|
||||
{
|
||||
r = cmd.ExecuteReader();
|
||||
}
|
||||
catch (SqliteException)
|
||||
{
|
||||
m_log.Error("[SQLITE]: There was an issue loading the estate settings. This can happen the first time running OpenSimulator with CSharpSqlite the first time. OpenSimulator will probably crash, restart it and it should be good to go.");
|
||||
}
|
||||
|
||||
IDataReader r = cmd.ExecuteReader();
|
||||
|
||||
if (r.Read())
|
||||
if (r != null && r.Read())
|
||||
{
|
||||
foreach (string name in FieldList)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue