diff options
author | unknown | 2010-03-07 23:20:23 +0000 |
---|---|---|
committer | Melanie | 2010-03-09 18:37:08 +0000 |
commit | c1352350004064a1722c2aeaaff313c4cc51181a (patch) | |
tree | f265aa0672585567210ff5650b17589c5093b727 /OpenSim/Data/MSSQL/MSSQLFriendsData.cs | |
parent | Comment a debug message that is a tad too spammy (diff) | |
download | opensim-SC_OLD-c1352350004064a1722c2aeaaff313c4cc51181a.zip opensim-SC_OLD-c1352350004064a1722c2aeaaff313c4cc51181a.tar.gz opensim-SC_OLD-c1352350004064a1722c2aeaaff313c4cc51181a.tar.bz2 opensim-SC_OLD-c1352350004064a1722c2aeaaff313c4cc51181a.tar.xz |
MSSQL tweaks for latest ROBUST - friends handling fixed, GridUserData placeholder added.
Signed-off-by: Melanie <melanie@t-data.com>
Diffstat (limited to 'OpenSim/Data/MSSQL/MSSQLFriendsData.cs')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLFriendsData.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLFriendsData.cs b/OpenSim/Data/MSSQL/MSSQLFriendsData.cs index 34da943..af4fd9b 100644 --- a/OpenSim/Data/MSSQL/MSSQLFriendsData.cs +++ b/OpenSim/Data/MSSQL/MSSQLFriendsData.cs | |||
@@ -72,7 +72,7 @@ namespace OpenSim.Data.MSSQL | |||
72 | using (SqlCommand cmd = new SqlCommand()) | 72 | using (SqlCommand cmd = new SqlCommand()) |
73 | { | 73 | { |
74 | 74 | ||
75 | 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); | 75 | 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); |
76 | cmd.Parameters.Add(m_database.CreateParameter("@PrincipalID", principalID.ToString())); | 76 | cmd.Parameters.Add(m_database.CreateParameter("@PrincipalID", principalID.ToString())); |
77 | cmd.Connection = conn; | 77 | cmd.Connection = conn; |
78 | conn.Open(); | 78 | conn.Open(); |