Compare commits

...

4 Commits

Author SHA1 Message Date
Justin Clarke Casey 6686040e76 * Apply mantis patches 2939, 2980 and 2995
* All these are necessary to get MSSQL working again
* Thanks to StrawberryFride for pointing this out
2009-01-14 15:15:10 +00:00
lbsa71 ce6fecbc93 * Created the post fixes branch for 0.6.1 (formerly known as 'stable') 2009-01-05 08:58:42 +00:00
Teravus Ovares e63c768973 * Back porting the LLSD Login Service Method fix to stable. 2008-12-27 22:09:32 +00:00
Charles Krinke 7b60e2c93f made a copy 2008-12-20 19:13:39 +00:00
5 changed files with 598 additions and 629 deletions

View File

@ -171,6 +171,10 @@ namespace OpenSim.Data.MSSQL
{ {
return SqlDbType.Float; return SqlDbType.Float;
} }
if (type == typeof(Single))
{
return SqlDbType.Float;
}
if (type == typeof(int)) if (type == typeof(int))
{ {
return SqlDbType.Int; return SqlDbType.Int;
@ -185,7 +189,7 @@ namespace OpenSim.Data.MSSQL
} }
if (type == typeof(sbyte)) if (type == typeof(sbyte))
{ {
return SqlDbType.TinyInt; return SqlDbType.Int;
} }
if (type == typeof(Byte[])) if (type == typeof(Byte[]))
{ {
@ -215,6 +219,10 @@ namespace OpenSim.Data.MSSQL
{ {
return value.ToString(); return value.ToString();
} }
if (valueType == typeof(OpenMetaverse.UUID))
{
return value.ToString();
}
if (valueType == typeof(bool)) if (valueType == typeof(bool))
{ {
return (bool)value ? 1 : 0; return (bool)value ? 1 : 0;
@ -223,6 +231,10 @@ namespace OpenSim.Data.MSSQL
{ {
return value; return value;
} }
if (valueType == typeof(int))
{
return value;
}
return value; return value;
} }
@ -269,6 +281,11 @@ namespace OpenSim.Data.MSSQL
private static readonly Dictionary<string, string> emptyDictionary = new Dictionary<string, string>(); private static readonly Dictionary<string, string> emptyDictionary = new Dictionary<string, string>();
/// <summary>
/// Run a query and return a sql db command
/// </summary>
/// <param name="sql">The SQL query.</param>
/// <returns></returns>
internal AutoClosingSqlCommand Query(string sql) internal AutoClosingSqlCommand Query(string sql)
{ {
return Query(sql, emptyDictionary); return Query(sql, emptyDictionary);

File diff suppressed because it is too large Load Diff

View File

@ -482,8 +482,8 @@ namespace OpenSim.Data.MSSQL
while (reader.Read()) while (reader.Read())
{ {
FriendRegionInfo fri = new FriendRegionInfo(); FriendRegionInfo fri = new FriendRegionInfo();
fri.isOnline = (sbyte)reader["agentOnline"] != 0; fri.isOnline = (byte)reader["agentOnline"] != 0;
fri.regionHandle = (ulong)reader["currentHandle"]; fri.regionHandle = Convert.ToUInt64(reader["currentHandle"].ToString());
infos[uuid] = fri; infos[uuid] = fri;
} }

View File

@ -0,0 +1,5 @@
BEGIN TRANSACTION
ALTER TABLE prims ADD LinkNumber integer not null default 0
COMMIT

View File

@ -379,7 +379,11 @@ namespace OpenSim.Framework.Communications
return logResponse.CreateLoginFailedResponseLLSD(); return logResponse.CreateLoginFailedResponseLLSD();
} }
} }
else
return logResponse.CreateLoginFailedResponseLLSD();
} }
else
return logResponse.CreateLoginFailedResponseLLSD();
if (userProfile.GodLevel < m_minLoginLevel) if (userProfile.GodLevel < m_minLoginLevel)