Revert one of the previous patches' hunks. The new code looked better, but
was less efficient.soprefactor
parent
ce787a4c41
commit
859beaf830
|
@ -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();
|
||||
if (reader.Read())
|
||||
{
|
||||
reader.Close();
|
||||
return ok;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
reader.Close();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue