aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLUserData.cs
diff options
context:
space:
mode:
authorSean Dague2008-10-15 18:15:43 +0000
committerSean Dague2008-10-15 18:15:43 +0000
commitfa8c0d7683d567743f5138813f08a502aff8e3d0 (patch)
tree7ac4d9dbb9979fcc4734e4a1898c24287bc3b6d3 /OpenSim/Data/MySQL/MySQLUserData.cs
parentRemoved some comments (diff)
downloadopensim-SC-fa8c0d7683d567743f5138813f08a502aff8e3d0.zip
opensim-SC-fa8c0d7683d567743f5138813f08a502aff8e3d0.tar.gz
opensim-SC-fa8c0d7683d567743f5138813f08a502aff8e3d0.tar.bz2
opensim-SC-fa8c0d7683d567743f5138813f08a502aff8e3d0.tar.xz
- Makes MySQL reject inserting UUID 0
- Makes SQLite mimick MySQL default behavior on first and last name already on db: it does not insert the new record. - Added tests for UUID 0 and for new UUID with existing first and last name.
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLUserData.cs')
-rw-r--r--OpenSim/Data/MySQL/MySQLUserData.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs
index c668d56..3a088cf 100644
--- a/OpenSim/Data/MySQL/MySQLUserData.cs
+++ b/OpenSim/Data/MySQL/MySQLUserData.cs
@@ -582,6 +582,11 @@ namespace OpenSim.Data.MySQL
582 /// <param name="user">The user profile to create</param> 582 /// <param name="user">The user profile to create</param>
583 public override void AddNewUserProfile(UserProfileData user) 583 public override void AddNewUserProfile(UserProfileData user)
584 { 584 {
585 UUID zero = UUID.Zero;
586 if (user.ID == zero)
587 {
588 return;
589 }
585 MySQLSuperManager dbm = GetLockedConnection(); 590 MySQLSuperManager dbm = GetLockedConnection();
586 591
587 try 592 try