diff options
author | Melanie | 2010-05-20 11:03:38 +0100 |
---|---|---|
committer | Melanie | 2010-05-20 11:03:38 +0100 |
commit | 859beaf830ecf554b82d150e6f805e096e927df7 (patch) | |
tree | 93f085f87889c0909f4f14be16fe4b9c5d42c5ba /OpenSim | |
parent | Series of patches to include creator ID in assets. (diff) | |
download | opensim-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 '')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteAssetData.cs | 13 |
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 | } |