Changed the query in GetFriends in SQLite to match the one in MySql.

slimupdates
Diva Canto 2010-03-01 21:35:46 -08:00
parent c6a5ff26ff
commit 53a8286468
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ namespace OpenSim.Data.SQLite
{ {
SqliteCommand cmd = new SqliteCommand(); SqliteCommand cmd = new SqliteCommand();
cmd.CommandText = String.Format("select a.*,b.Flags as TheirFlags from {0} as a left join {0} as b on a.PrincipalID = b.Friend and a.Friend = b.PrincipalID where a.PrincipalID = :PrincipalID and b.Flags is not null", m_Realm); cmd.CommandText = String.Format("select a.*,case when b.Flags is null then -1 else b.Flags end as TheirFlags from {0} as a left join {0} as b on a.PrincipalID = b.Friend and a.Friend = b.PrincipalID where a.PrincipalID = :PrincipalID", m_Realm);
cmd.Parameters.Add(":PrincipalID", userID.ToString()); cmd.Parameters.Add(":PrincipalID", userID.ToString());
return DoQuery(cmd); return DoQuery(cmd);