mirror of
https://github.com/opensim/opensim.git
synced 2026-06-29 10:35:40 +08:00
* Fixed MySQL/MySQLAssetData.cs to properly do updates * Removed an extra parameter from MySQL/MySQLInventoryData.cs * Fixed a bug in SQLite/SQLiteAssetData.cs that was causing a NRE when updating an asset. * Improved the BasicAssetTest.cs to do full create/update/get testing * Improved the BasicInventoryTest.cs to do full create/update/get of both a folder and an item * Moved the null ref tests to the start of the PropertyCompareConstraint.cs, so that it doesn't throw when passing in a null item
This commit is contained in:
committed by
Teravus Ovares (Dan Olivares)
parent
f6251ce810
commit
d2e5380cb2
@@ -196,18 +196,11 @@ namespace OpenSim.Data.MySQL
|
||||
{
|
||||
lock (_dbConnection)
|
||||
{
|
||||
//m_log.Info("[ASSET DB]: Creating Asset " + asset.FullID);
|
||||
if (ExistsAsset(asset.FullID))
|
||||
{
|
||||
//m_log.Info("[ASSET DB]: Asset exists already, ignoring.");
|
||||
return;
|
||||
}
|
||||
|
||||
_dbConnection.CheckConnection();
|
||||
|
||||
MySqlCommand cmd =
|
||||
new MySqlCommand(
|
||||
"insert INTO assets(id, name, description, assetType, local, temporary, create_time, access_time, data)" +
|
||||
"replace INTO assets(id, name, description, assetType, local, temporary, create_time, access_time, data)" +
|
||||
"VALUES(?id, ?name, ?description, ?assetType, ?local, ?temporary, ?create_time, ?access_time, ?data)",
|
||||
_dbConnection.Connection);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user