Tleiades Hax 2007-11-01 21:36:47 +00:00
parent dcf41cb683
commit cb2ae6eaed
1 changed files with 14 additions and 10 deletions

View File

@ -101,6 +101,9 @@ namespace OpenSim.Framework.Data.MySQL
"REPLACE INTO assets(id, name, description, assetType, invType, local, temporary, data)" +
"VALUES(?id, ?name, ?description, ?assetType, ?invType, ?local, ?temporary, ?data)",
_dbConnection.Connection);
using (cmd)
{
MySqlParameter p = cmd.Parameters.Add("?id", MySqlDbType.Binary, 16);
p.Value = asset.FullID.GetBytes();
cmd.Parameters.AddWithValue("?name", asset.Name);
@ -112,6 +115,7 @@ namespace OpenSim.Framework.Data.MySQL
cmd.Parameters.AddWithValue("?data", asset.Data);
cmd.ExecuteNonQuery();
}
}
public void UpdateAsset(AssetBase asset)
{