mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 19:35:41 +08:00
- 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.
This commit is contained in:
@@ -582,6 +582,11 @@ namespace OpenSim.Data.MySQL
|
||||
/// <param name="user">The user profile to create</param>
|
||||
public override void AddNewUserProfile(UserProfileData user)
|
||||
{
|
||||
UUID zero = UUID.Zero;
|
||||
if (user.ID == zero)
|
||||
{
|
||||
return;
|
||||
}
|
||||
MySQLSuperManager dbm = GetLockedConnection();
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user