diff options
author | Melanie | 2010-09-25 06:19:26 +0100 |
---|---|---|
committer | Melanie | 2010-09-25 06:19:26 +0100 |
commit | 4fbdcb95a078d8a7b9c90bb3d3b56f955512bccd (patch) | |
tree | 1e69a75f208cc7065bdd196bb99d13adfb5003b5 /OpenSim/Data/SQLite/SQLiteEstateData.cs | |
parent | Experimental locking of taint processing (diff) | |
parent | Fix a minor economy issue (diff) | |
download | opensim-SC-4fbdcb95a078d8a7b9c90bb3d3b56f955512bccd.zip opensim-SC-4fbdcb95a078d8a7b9c90bb3d3b56f955512bccd.tar.gz opensim-SC-4fbdcb95a078d8a7b9c90bb3d3b56f955512bccd.tar.bz2 opensim-SC-4fbdcb95a078d8a7b9c90bb3d3b56f955512bccd.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteEstateData.cs | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteEstateData.cs b/OpenSim/Data/SQLite/SQLiteEstateData.cs index d1d67eb..63252aa 100644 --- a/OpenSim/Data/SQLite/SQLiteEstateData.cs +++ b/OpenSim/Data/SQLite/SQLiteEstateData.cs | |||
@@ -30,7 +30,11 @@ using System.Collections.Generic; | |||
30 | using System.Data; | 30 | using System.Data; |
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using log4net; | 32 | using log4net; |
33 | using Mono.Data.Sqlite; | 33 | #if CSharpSqlite |
34 | using Community.CsharpSqlite.Sqlite; | ||
35 | #else | ||
36 | using Mono.Data.Sqlite; | ||
37 | #endif | ||
34 | using OpenMetaverse; | 38 | using OpenMetaverse; |
35 | using OpenSim.Framework; | 39 | using OpenSim.Framework; |
36 | using OpenSim.Region.Framework.Interfaces; | 40 | using OpenSim.Region.Framework.Interfaces; |
@@ -105,10 +109,17 @@ namespace OpenSim.Data.SQLite | |||
105 | { | 109 | { |
106 | EstateSettings es = new EstateSettings(); | 110 | EstateSettings es = new EstateSettings(); |
107 | es.OnSave += StoreEstateSettings; | 111 | es.OnSave += StoreEstateSettings; |
112 | IDataReader r = null; | ||
113 | try | ||
114 | { | ||
115 | r = cmd.ExecuteReader(); | ||
116 | } | ||
117 | catch (SqliteException) | ||
118 | { | ||
119 | 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."); | ||
120 | } | ||
108 | 121 | ||
109 | IDataReader r = cmd.ExecuteReader(); | 122 | if (r != null && r.Read()) |
110 | |||
111 | if (r.Read()) | ||
112 | { | 123 | { |
113 | foreach (string name in FieldList) | 124 | foreach (string name in FieldList) |
114 | { | 125 | { |