From 5b4d631d34216650a898b574aaf26b9910f532d6 Mon Sep 17 00:00:00 2001
From: Sean Dague
Date: Thu, 27 Sep 2007 13:44:45 +0000
Subject: implement something in sqlite inventory that wasn't before not sure
how we missed this function
---
OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
(limited to 'OpenSim/Framework/Data.SQLite')
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs b/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs
index cac992c..7d9cf75 100644
--- a/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs
+++ b/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs
@@ -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
/// A class containing item information
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;
}
///
--
cgit v1.1