aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorMelanie2010-05-20 11:03:38 +0100
committerMelanie2010-05-20 11:03:38 +0100
commit859beaf830ecf554b82d150e6f805e096e927df7 (patch)
tree93f085f87889c0909f4f14be16fe4b9c5d42c5ba /OpenSim/Data
parentSeries of patches to include creator ID in assets. (diff)
downloadopensim-SC-859beaf830ecf554b82d150e6f805e096e927df7.zip
opensim-SC-859beaf830ecf554b82d150e6f805e096e927df7.tar.gz
opensim-SC-859beaf830ecf554b82d150e6f805e096e927df7.tar.bz2
opensim-SC-859beaf830ecf554b82d150e6f805e096e927df7.tar.xz
Revert one of the previous patches' hunks. The new code looked better, but
was less efficient.
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/SQLite/SQLiteAssetData.cs13
1 files changed, 10 insertions, 3 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteAssetData.cs b/OpenSim/Data/SQLite/SQLiteAssetData.cs
index 40e51db..16e560c 100644
--- a/OpenSim/Data/SQLite/SQLiteAssetData.cs
+++ b/OpenSim/Data/SQLite/SQLiteAssetData.cs
@@ -196,9 +196,16 @@ namespace OpenSim.Data.SQLite
196 cmd.Parameters.Add(new SqliteParameter(":UUID", uuid.ToString())); 196 cmd.Parameters.Add(new SqliteParameter(":UUID", uuid.ToString()));
197 using (IDataReader reader = cmd.ExecuteReader()) 197 using (IDataReader reader = cmd.ExecuteReader())
198 { 198 {
199 bool ok = reader.Read(); 199 if (reader.Read())
200 reader.Close(); 200 {
201 return ok; 201 reader.Close();
202 return true;
203 }
204 else
205 {
206 reader.Close();
207 return false;
208 }
202 } 209 }
203 } 210 }
204 } 211 }