aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs
diff options
context:
space:
mode:
authorSean Dague2007-09-27 13:44:45 +0000
committerSean Dague2007-09-27 13:44:45 +0000
commit5b4d631d34216650a898b574aaf26b9910f532d6 (patch)
tree105b482e080a03b2b90382b8f9078788e7fd8775 /OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs
parent* Tleiades grid mode inventory (#444) - thanx Tleiades! (diff)
downloadopensim-SC-5b4d631d34216650a898b574aaf26b9910f532d6.zip
opensim-SC-5b4d631d34216650a898b574aaf26b9910f532d6.tar.gz
opensim-SC-5b4d631d34216650a898b574aaf26b9910f532d6.tar.bz2
opensim-SC-5b4d631d34216650a898b574aaf26b9910f532d6.tar.xz
implement something in sqlite inventory that wasn't before
not sure how we missed this function
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>