From fa8c0d7683d567743f5138813f08a502aff8e3d0 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 15 Oct 2008 18:15:43 +0000 Subject: - 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. --- OpenSim/Data/MySQL/MySQLUserData.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim/Data/MySQL') 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 /// The user profile to create public override void AddNewUserProfile(UserProfileData user) { + UUID zero = UUID.Zero; + if (user.ID == zero) + { + return; + } MySQLSuperManager dbm = GetLockedConnection(); try -- cgit v1.1