Revert one of the previous patches' hunks. The new code looked better, but

was less efficient.
soprefactor
Melanie 2010-05-20 11:03:38 +01:00
parent ce787a4c41
commit 859beaf830
1 changed files with 10 additions and 3 deletions

View File

@ -196,9 +196,16 @@ namespace OpenSim.Data.SQLite
cmd.Parameters.Add(new SqliteParameter(":UUID", uuid.ToString())); cmd.Parameters.Add(new SqliteParameter(":UUID", uuid.ToString()));
using (IDataReader reader = cmd.ExecuteReader()) using (IDataReader reader = cmd.ExecuteReader())
{ {
bool ok = reader.Read(); if (reader.Read())
{
reader.Close(); reader.Close();
return ok; return true;
}
else
{
reader.Close();
return false;
}
} }
} }
} }