aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLUserProfilesData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLUserProfilesData.cs')
-rw-r--r--OpenSim/Data/MySQL/MySQLUserProfilesData.cs16
1 files changed, 10 insertions, 6 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs
index dca80c3..48044f0 100644
--- a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs
+++ b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs
@@ -927,15 +927,19 @@ namespace OpenSim.Data.MySQL
927 } 927 }
928 else 928 else
929 { 929 {
930 dbcon.Close();
931 dbcon.Open();
932
933 query = "INSERT INTO usersettings VALUES ";
934 query += "(?uuid,'false','false', ?Email)";
935
930 using (MySqlCommand put = new MySqlCommand(query, dbcon)) 936 using (MySqlCommand put = new MySqlCommand(query, dbcon))
931 { 937 {
932 query = "INSERT INTO usersettings VALUES ";
933 query += "(?Id,'false','false', '')";
934 938
935 lock(Lock) 939 put.Parameters.AddWithValue("?Email", pref.EMail);
936 { 940 put.Parameters.AddWithValue("?uuid", pref.UserId.ToString());
937 put.ExecuteNonQuery(); 941
938 } 942 put.ExecuteNonQuery();
939 } 943 }
940 } 944 }
941 } 945 }