mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Deal with a situation where the new fields in the inventory store are null on sqlite
* This is due to a preparatory change I made yesterday
This commit is contained in:
@@ -103,12 +103,24 @@ namespace OpenSim.Data.SQLite
|
||||
item.EveryOnePermissions = Convert.ToUInt32(row["inventoryEveryOnePermissions"]);
|
||||
|
||||
// new fields
|
||||
item.SalePrice = Convert.ToInt32(row["salePrice"]);
|
||||
item.SaleType = Convert.ToByte(row["saleType"]);
|
||||
item.CreationDate = Convert.ToInt32(row["creationDate"]);
|
||||
item.GroupID = new LLUUID((string)row["groupID"]);
|
||||
item.GroupOwned = Convert.ToBoolean(row["groupOwned"]);
|
||||
item.Flags = Convert.ToUInt32(row["Flags"]);
|
||||
if (!Convert.IsDBNull(row["salePrice"]))
|
||||
item.SalePrice = Convert.ToInt32(row["salePrice"]);
|
||||
|
||||
if (!Convert.IsDBNull(row["saleType"]))
|
||||
item.SaleType = Convert.ToByte(row["saleType"]);
|
||||
|
||||
if (!Convert.IsDBNull(row["creationDate"]))
|
||||
item.CreationDate = Convert.ToInt32(row["creationDate"]);
|
||||
|
||||
if (!Convert.IsDBNull(row["groupID"]))
|
||||
item.GroupID = new LLUUID((string)row["groupID"]);
|
||||
|
||||
if (!Convert.IsDBNull(row["groupOwned"]))
|
||||
item.GroupOwned = Convert.ToBoolean(row["groupOwned"]);
|
||||
|
||||
if (!Convert.IsDBNull(row["Flags"]))
|
||||
item.Flags = Convert.ToUInt32(row["Flags"]);
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user