mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
Attachments now save to MySQL. No reattach on login yet.
This commit is contained in:
@@ -1208,7 +1208,10 @@ namespace OpenSim.Data.MySQL
|
||||
|
||||
cmd.ExecuteNonQuery();
|
||||
|
||||
sql = "insert into avatarattachments (UUID, attachpoint, item, asset) values (?uuid, ?attchpoint, ?item, ?asset)";
|
||||
if (data == null)
|
||||
return;
|
||||
|
||||
sql = "insert into avatarattachments (UUID, attachpoint, item, asset) values (?uuid, ?attachpoint, ?item, ?asset)";
|
||||
|
||||
cmd = (MySqlCommand) dbcon.CreateCommand();
|
||||
cmd.CommandText = sql;
|
||||
|
||||
@@ -834,14 +834,15 @@ namespace OpenSim.Data.MySQL
|
||||
|
||||
IDataReader r = cmd.ExecuteReader();
|
||||
|
||||
return database.readAttachments(r);
|
||||
Hashtable ret = database.readAttachments(r);
|
||||
|
||||
r.Close();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void UpdateUserAttachments(LLUUID agentID, Hashtable data)
|
||||
{
|
||||
if(data == null)
|
||||
return;
|
||||
|
||||
database.writeAttachments(agentID, data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user