From 859beaf830ecf554b82d150e6f805e096e927df7 Mon Sep 17 00:00:00 2001 From: Melanie Date: Thu, 20 May 2010 11:03:38 +0100 Subject: Revert one of the previous patches' hunks. The new code looked better, but was less efficient. --- OpenSim/Data/SQLite/SQLiteAssetData.cs | 13 ++++++++++--- 1 file 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 cmd.Parameters.Add(new SqliteParameter(":UUID", uuid.ToString())); using (IDataReader reader = cmd.ExecuteReader()) { - bool ok = reader.Read(); - reader.Close(); - return ok; + if (reader.Read()) + { + reader.Close(); + return true; + } + else + { + reader.Close(); + return false; + } } } } -- cgit v1.1