Save and load dwell parcel stat in MySQL DB adaptor. Field in table already exists!
The SQLite database adaptor was loading and saving dwell whilst MySQL was not, even though the field already exists in the db table.0.8.0.3
parent
f3e177814a
commit
01520bbb3e
|
@ -695,7 +695,7 @@ namespace OpenSim.Data.MySQL
|
|||
"MusicURL, PassHours, PassPrice, SnapshotUUID, " +
|
||||
"UserLocationX, UserLocationY, UserLocationZ, " +
|
||||
"UserLookAtX, UserLookAtY, UserLookAtZ, " +
|
||||
"AuthbuyerID, OtherCleanTime, MediaType, MediaDescription, " +
|
||||
"AuthbuyerID, OtherCleanTime, Dwell, MediaType, MediaDescription, " +
|
||||
"MediaSize, MediaLoop, ObscureMusic, ObscureMedia) values (" +
|
||||
"?UUID, ?RegionUUID, " +
|
||||
"?LocalLandID, ?Bitmap, ?Name, ?Description, " +
|
||||
|
@ -706,7 +706,7 @@ namespace OpenSim.Data.MySQL
|
|||
"?MusicURL, ?PassHours, ?PassPrice, ?SnapshotUUID, " +
|
||||
"?UserLocationX, ?UserLocationY, ?UserLocationZ, " +
|
||||
"?UserLookAtX, ?UserLookAtY, ?UserLookAtZ, " +
|
||||
"?AuthbuyerID, ?OtherCleanTime, ?MediaType, ?MediaDescription, "+
|
||||
"?AuthbuyerID, ?OtherCleanTime, ?Dwell, ?MediaType, ?MediaDescription, "+
|
||||
"CONCAT(?MediaWidth, ',', ?MediaHeight), ?MediaLoop, ?ObscureMusic, ?ObscureMedia)";
|
||||
|
||||
FillLandCommand(cmd, parcel.LandData, parcel.RegionUUID);
|
||||
|
@ -1484,6 +1484,7 @@ namespace OpenSim.Data.MySQL
|
|||
UUID.TryParse((string)row["AuthBuyerID"], out authedbuyer);
|
||||
UUID.TryParse((string)row["SnapshotUUID"], out snapshotID);
|
||||
newData.OtherCleanTime = Convert.ToInt32(row["OtherCleanTime"]);
|
||||
newData.Dwell = Convert.ToSingle(row["Dwell"]);
|
||||
|
||||
newData.AuthBuyerID = authedbuyer;
|
||||
newData.SnapshotID = snapshotID;
|
||||
|
@ -1815,6 +1816,7 @@ namespace OpenSim.Data.MySQL
|
|||
cmd.Parameters.AddWithValue("UserLookAtZ", land.UserLookAt.Z);
|
||||
cmd.Parameters.AddWithValue("AuthBuyerID", land.AuthBuyerID);
|
||||
cmd.Parameters.AddWithValue("OtherCleanTime", land.OtherCleanTime);
|
||||
cmd.Parameters.AddWithValue("Dwell", land.OtherCleanTime);
|
||||
cmd.Parameters.AddWithValue("MediaDescription", land.MediaDescription);
|
||||
cmd.Parameters.AddWithValue("MediaType", land.MediaType);
|
||||
cmd.Parameters.AddWithValue("MediaWidth", land.MediaWidth);
|
||||
|
@ -1822,7 +1824,6 @@ namespace OpenSim.Data.MySQL
|
|||
cmd.Parameters.AddWithValue("MediaLoop", land.MediaLoop);
|
||||
cmd.Parameters.AddWithValue("ObscureMusic", land.ObscureMusic);
|
||||
cmd.Parameters.AddWithValue("ObscureMedia", land.ObscureMedia);
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue