diff options
author | Melanie Thielker | 2008-08-14 00:04:37 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-08-14 00:04:37 +0000 |
commit | e3157e61aa50d057b4345cb9d49c973afeb26b15 (patch) | |
tree | 8452565ff0d7e6c3d07541743e0e5f665bc7d03c /OpenSim/Data/MySQL/MySQLManager.cs | |
parent | * minor: make it clear on the console when a client is being logged out becau... (diff) | |
download | opensim-SC_OLD-e3157e61aa50d057b4345cb9d49c973afeb26b15.zip opensim-SC_OLD-e3157e61aa50d057b4345cb9d49c973afeb26b15.tar.gz opensim-SC_OLD-e3157e61aa50d057b4345cb9d49c973afeb26b15.tar.bz2 opensim-SC_OLD-e3157e61aa50d057b4345cb9d49c973afeb26b15.tar.xz |
Mantis #1946
Thank you, HomerHorwitz, for a patch that corrects and improves TP
to landmark and home position handling.
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLManager.cs')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLManager.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLManager.cs b/OpenSim/Data/MySQL/MySQLManager.cs index 89d0672..297b1a7 100644 --- a/OpenSim/Data/MySQL/MySQLManager.cs +++ b/OpenSim/Data/MySQL/MySQLManager.cs | |||
@@ -538,6 +538,10 @@ namespace OpenSim.Data.MySQL | |||
538 | Convert.ToSingle(reader["homeLookAtY"].ToString()), | 538 | Convert.ToSingle(reader["homeLookAtY"].ToString()), |
539 | Convert.ToSingle(reader["homeLookAtZ"].ToString())); | 539 | Convert.ToSingle(reader["homeLookAtZ"].ToString())); |
540 | 540 | ||
541 | LLUUID regionID = LLUUID.Zero; | ||
542 | LLUUID.TryParse(reader["homeRegionID"].ToString(), out regionID); // it's ok if it doesn't work; just use LLUUID.Zero | ||
543 | retval.HomeRegionID = regionID; | ||
544 | |||
541 | retval.Created = Convert.ToInt32(reader["created"].ToString()); | 545 | retval.Created = Convert.ToInt32(reader["created"].ToString()); |
542 | retval.LastLogin = Convert.ToInt32(reader["lastLogin"].ToString()); | 546 | retval.LastLogin = Convert.ToInt32(reader["lastLogin"].ToString()); |
543 | 547 | ||
@@ -583,6 +587,7 @@ namespace OpenSim.Data.MySQL | |||
583 | LLUUID.TryParse((string)reader["webLoginKey"], out tmp); | 587 | LLUUID.TryParse((string)reader["webLoginKey"], out tmp); |
584 | retval.WebLoginKey = tmp; | 588 | retval.WebLoginKey = tmp; |
585 | } | 589 | } |
590 | |||
586 | } | 591 | } |
587 | else | 592 | else |
588 | { | 593 | { |
@@ -806,7 +811,7 @@ namespace OpenSim.Data.MySQL | |||
806 | /// <param name="webLoginKey">UUID for weblogin Key</param> | 811 | /// <param name="webLoginKey">UUID for weblogin Key</param> |
807 | /// <returns>Success?</returns> | 812 | /// <returns>Success?</returns> |
808 | public bool updateUserRow(LLUUID uuid, string username, string lastname, string passwordHash, | 813 | public bool updateUserRow(LLUUID uuid, string username, string lastname, string passwordHash, |
809 | string passwordSalt, UInt64 homeRegion, float homeLocX, float homeLocY, float homeLocZ, | 814 | string passwordSalt, UInt64 homeRegion, LLUUID homeRegionID, float homeLocX, float homeLocY, float homeLocZ, |
810 | float homeLookAtX, float homeLookAtY, float homeLookAtZ, int created, int lastlogin, | 815 | float homeLookAtX, float homeLookAtY, float homeLookAtZ, int created, int lastlogin, |
811 | string inventoryURI, string assetURI, uint canDoMask, uint wantDoMask, | 816 | string inventoryURI, string assetURI, uint canDoMask, uint wantDoMask, |
812 | string aboutText, string firstText, | 817 | string aboutText, string firstText, |
@@ -814,7 +819,7 @@ namespace OpenSim.Data.MySQL | |||
814 | { | 819 | { |
815 | string sql = "UPDATE users SET `username` = ?username , `lastname` = ?lastname "; | 820 | string sql = "UPDATE users SET `username` = ?username , `lastname` = ?lastname "; |
816 | sql += ", `passwordHash` = ?passwordHash , `passwordSalt` = ?passwordSalt , "; | 821 | sql += ", `passwordHash` = ?passwordHash , `passwordSalt` = ?passwordSalt , "; |
817 | sql += "`homeRegion` = ?homeRegion , `homeLocationX` = ?homeLocationX , "; | 822 | sql += "`homeRegion` = ?homeRegion , `homeRegionID` = ?homeRegionID, `homeLocationX` = ?homeLocationX , "; |
818 | sql += "`homeLocationY` = ?homeLocationY , `homeLocationZ` = ?homeLocationZ , "; | 823 | sql += "`homeLocationY` = ?homeLocationY , `homeLocationZ` = ?homeLocationZ , "; |
819 | sql += "`homeLookAtX` = ?homeLookAtX , `homeLookAtY` = ?homeLookAtY , "; | 824 | sql += "`homeLookAtX` = ?homeLookAtX , `homeLookAtY` = ?homeLookAtY , "; |
820 | sql += "`homeLookAtZ` = ?homeLookAtZ , `created` = ?created , `lastLogin` = ?lastLogin , "; | 825 | sql += "`homeLookAtZ` = ?homeLookAtZ , `created` = ?created , `lastLogin` = ?lastLogin , "; |
@@ -831,6 +836,7 @@ namespace OpenSim.Data.MySQL | |||
831 | parameters["?passwordHash"] = passwordHash.ToString(); | 836 | parameters["?passwordHash"] = passwordHash.ToString(); |
832 | parameters["?passwordSalt"] = passwordSalt.ToString(); | 837 | parameters["?passwordSalt"] = passwordSalt.ToString(); |
833 | parameters["?homeRegion"] = homeRegion.ToString(); | 838 | parameters["?homeRegion"] = homeRegion.ToString(); |
839 | parameters["?homeRegionID"] = homeRegionID.ToString(); | ||
834 | parameters["?homeLocationX"] = homeLocX.ToString(); | 840 | parameters["?homeLocationX"] = homeLocX.ToString(); |
835 | parameters["?homeLocationY"] = homeLocY.ToString(); | 841 | parameters["?homeLocationY"] = homeLocY.ToString(); |
836 | parameters["?homeLocationZ"] = homeLocZ.ToString(); | 842 | parameters["?homeLocationZ"] = homeLocZ.ToString(); |