Mantis#1796. Thank you kindly, StrawberryFride for a patch that:

Agent table code (INSERT / UPDATE, etc) now added to MSSQL provider.
This commit is contained in:
Charles Krinke
2008-07-20 22:16:50 +00:00
parent 09641bd999
commit 681433c4b7
3 changed files with 72 additions and 20 deletions

View File

@@ -190,28 +190,15 @@ namespace OpenSim.Grid.UserServer
{
// ulong cregionhandle = 0;
LLUUID regionUUID = LLUUID.Zero;
LLUUID AvatarID = LLUUID.Zero;
LLUUID avatarUUID = LLUUID.Zero;
Helpers.TryParse((string)requestData["avatar_id"], out AvatarID);
Helpers.TryParse((string)requestData["avatar_id"], out avatarUUID);
Helpers.TryParse((string)requestData["region_uuid"], out regionUUID);
// try
// {
// cregionhandle = (ulong)Convert.ToInt64((string)requestData["region_handle"]);
// }
// catch (ArgumentException)
// {
// }
// catch (OverflowException)
// {
// }
// catch (FormatException)
// {
// }
if (AvatarID != LLUUID.Zero)
if (avatarUUID != LLUUID.Zero)
{
UserProfileData userProfile = GetUserProfile(new LLUUID((string)requestData["avatar_id"]));
userProfile.CurrentAgent.Region = new LLUUID((string)requestData["region_uuid"]);
UserProfileData userProfile = GetUserProfile(avatarUUID);
userProfile.CurrentAgent.Region = regionUUID;
userProfile.CurrentAgent.Handle = (ulong)Convert.ToInt64((string)requestData["region_handle"]);
//userProfile.CurrentAgent.
CommitAgent(ref userProfile);