restore sqlite fixes from commit 0e6874..that got lost

LSLKeyTest
UbitUmarov 2016-09-17 19:46:40 +01:00
parent 4dc787eb32
commit 188b5030f7
1 changed files with 10 additions and 3 deletions

View File

@ -1419,7 +1419,7 @@ namespace OpenSim.Data.SQLite
createCol(land, "Name", typeof(String)); createCol(land, "Name", typeof(String));
createCol(land, "Desc", typeof(String)); createCol(land, "Desc", typeof(String));
createCol(land, "OwnerUUID", typeof(String)); createCol(land, "OwnerUUID", typeof(String));
createCol(land, "IsGroupOwned", typeof(Boolean)); createCol(land, "IsGroupOwned", typeof(string));
createCol(land, "Area", typeof(Int32)); createCol(land, "Area", typeof(Int32));
createCol(land, "AuctionID", typeof(Int32)); //Unemplemented createCol(land, "AuctionID", typeof(Int32)); //Unemplemented
createCol(land, "Category", typeof(Int32)); //Enum OpenMetaverse.Parcel.ParcelCategory createCol(land, "Category", typeof(Int32)); //Enum OpenMetaverse.Parcel.ParcelCategory
@ -1452,6 +1452,9 @@ namespace OpenSim.Data.SQLite
createCol(land, "MediaLoop", typeof(Boolean)); createCol(land, "MediaLoop", typeof(Boolean));
createCol(land, "ObscureMedia", typeof(Boolean)); createCol(land, "ObscureMedia", typeof(Boolean));
createCol(land, "ObscureMusic", typeof(Boolean)); createCol(land, "ObscureMusic", typeof(Boolean));
createCol(land, "SeeAVs", typeof(Boolean));
createCol(land, "AnyAVSounds", typeof(Boolean));
createCol(land, "GroupAVSounds", typeof(Boolean));
land.PrimaryKey = new DataColumn[] { land.Columns["UUID"] }; land.PrimaryKey = new DataColumn[] { land.Columns["UUID"] };
@ -1894,7 +1897,7 @@ namespace OpenSim.Data.SQLite
newData.Name = (String)row["Name"]; newData.Name = (String)row["Name"];
newData.Description = (String)row["Desc"]; newData.Description = (String)row["Desc"];
newData.OwnerID = (UUID)(String)row["OwnerUUID"]; newData.OwnerID = (UUID)(String)row["OwnerUUID"];
newData.IsGroupOwned = (Boolean)row["IsGroupOwned"]; newData.IsGroupOwned = Convert.ToBoolean(row["IsGroupOwned"]);
newData.Area = Convert.ToInt32(row["Area"]); newData.Area = Convert.ToInt32(row["Area"]);
newData.AuctionID = Convert.ToUInt32(row["AuctionID"]); //Unemplemented newData.AuctionID = Convert.ToUInt32(row["AuctionID"]); //Unemplemented
newData.Category = (ParcelCategory)Convert.ToInt32(row["Category"]); newData.Category = (ParcelCategory)Convert.ToInt32(row["Category"]);
@ -2310,7 +2313,7 @@ namespace OpenSim.Data.SQLite
row["Name"] = land.Name; row["Name"] = land.Name;
row["Desc"] = land.Description; row["Desc"] = land.Description;
row["OwnerUUID"] = land.OwnerID.ToString(); row["OwnerUUID"] = land.OwnerID.ToString();
row["IsGroupOwned"] = land.IsGroupOwned; row["IsGroupOwned"] = land.IsGroupOwned.ToString();
row["Area"] = land.Area; row["Area"] = land.Area;
row["AuctionID"] = land.AuctionID; //Unemplemented row["AuctionID"] = land.AuctionID; //Unemplemented
row["Category"] = land.Category; //Enum OpenMetaverse.Parcel.ParcelCategory row["Category"] = land.Category; //Enum OpenMetaverse.Parcel.ParcelCategory
@ -3004,6 +3007,10 @@ namespace OpenSim.Data.SQLite
{ {
return DbType.Binary; return DbType.Binary;
} }
else if (type == typeof(Boolean))
{
return DbType.Boolean;
}
else else
{ {
return DbType.String; return DbType.String;