aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs')
-rw-r--r--OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs10
1 files changed, 7 insertions, 3 deletions
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
65 return; 65 return;
66 } 66 }
67 67
68 public InventoryItemBase BuildItem(DataRow row) 68 public InventoryItemBase buildItem(DataRow row)
69 { 69 {
70 InventoryItemBase item = new InventoryItemBase(); 70 InventoryItemBase item = new InventoryItemBase();
71 item.inventoryID = new LLUUID((string)row["UUID"]); 71 item.inventoryID = new LLUUID((string)row["UUID"]);
@@ -183,7 +183,7 @@ namespace OpenSim.Framework.Data.SQLite
183 DataRow[] rows = inventoryItemTable.Select(selectExp); 183 DataRow[] rows = inventoryItemTable.Select(selectExp);
184 foreach (DataRow row in rows) 184 foreach (DataRow row in rows)
185 { 185 {
186 retval.Add(BuildItem(row)); 186 retval.Add(buildItem(row));
187 } 187 }
188 188
189 return retval; 189 return retval;
@@ -234,7 +234,11 @@ namespace OpenSim.Framework.Data.SQLite
234 /// <returns>A class containing item information</returns> 234 /// <returns>A class containing item information</returns>
235 public InventoryItemBase getInventoryItem(LLUUID item) 235 public InventoryItemBase getInventoryItem(LLUUID item)
236 { 236 {
237 return null; 237 DataRows[] rows = ds.Tables["inventoryitems"].Find(item);
238 if (rows.Length == 1)
239 return this.buildItem(rows[0]);
240 else
241 return null;
238 } 242 }
239 243
240 /// <summary> 244 /// <summary>