mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
implement something in sqlite inventory that wasn't before
not sure how we missed this function
This commit is contained in:
@@ -65,7 +65,7 @@ namespace OpenSim.Framework.Data.SQLite
|
||||
return;
|
||||
}
|
||||
|
||||
public InventoryItemBase BuildItem(DataRow row)
|
||||
public InventoryItemBase buildItem(DataRow row)
|
||||
{
|
||||
InventoryItemBase item = new InventoryItemBase();
|
||||
item.inventoryID = new LLUUID((string)row["UUID"]);
|
||||
@@ -183,7 +183,7 @@ namespace OpenSim.Framework.Data.SQLite
|
||||
DataRow[] rows = inventoryItemTable.Select(selectExp);
|
||||
foreach (DataRow row in rows)
|
||||
{
|
||||
retval.Add(BuildItem(row));
|
||||
retval.Add(buildItem(row));
|
||||
}
|
||||
|
||||
return retval;
|
||||
@@ -234,7 +234,11 @@ namespace OpenSim.Framework.Data.SQLite
|
||||
/// <returns>A class containing item information</returns>
|
||||
public InventoryItemBase getInventoryItem(LLUUID item)
|
||||
{
|
||||
return null;
|
||||
DataRows[] rows = ds.Tables["inventoryitems"].Find(item);
|
||||
if (rows.Length == 1)
|
||||
return this.buildItem(rows[0]);
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user