aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.DB4o/DB4oUserData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Data.DB4o/DB4oUserData.cs')
-rw-r--r--OpenSim/Framework/Data.DB4o/DB4oUserData.cs19
1 files changed, 18 insertions, 1 deletions
diff --git a/OpenSim/Framework/Data.DB4o/DB4oUserData.cs b/OpenSim/Framework/Data.DB4o/DB4oUserData.cs
index 831b198..88caeb8 100644
--- a/OpenSim/Framework/Data.DB4o/DB4oUserData.cs
+++ b/OpenSim/Framework/Data.DB4o/DB4oUserData.cs
@@ -139,13 +139,30 @@ namespace OpenSim.Framework.Data.DB4o
139 { 139 {
140 try 140 try
141 { 141 {
142 manager.AddRow(user); 142 manager.UpdateRecord(user);
143 } 143 }
144 catch (Exception e) 144 catch (Exception e)
145 { 145 {
146 Console.WriteLine(e.ToString()); 146 Console.WriteLine(e.ToString());
147 } 147 }
148 } 148 }
149
150 /// <summary>
151 /// Creates a new user profile
152 /// </summary>
153 /// <param name="user">The profile to add to the database</param>
154 /// <returns>True on success, false on error</returns>
155 public bool updateUserProfile(UserProfileData user)
156 {
157 try {
158 return manager.UpdateRecord(user);
159 } catch (Exception e) {
160 Console.WriteLine(e.ToString());
161 return false;
162 }
163 }
164
165
149 166
150 /// <summary> 167 /// <summary>
151 /// Creates a new user agent 168 /// Creates a new user agent