aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r--OpenSim/Data/SQLite/SQLiteInventoryStore.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
index 40b61ee..b9fda04 100644
--- a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
+++ b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
@@ -847,5 +847,24 @@ namespace OpenSim.Data.SQLite
847 row["UUID"] = Util.ToRawUuidString(folder.ID); 847 row["UUID"] = Util.ToRawUuidString(folder.ID);
848 row["parentID"] = Util.ToRawUuidString(folder.ParentID); 848 row["parentID"] = Util.ToRawUuidString(folder.ParentID);
849 } 849 }
850
851 public List<InventoryItemBase> fetchActiveGestures (UUID avatarID)
852 {
853 lock (ds)
854 {
855 List<InventoryItemBase> items = new List<InventoryItemBase>();
856
857 DataTable inventoryItemTable = ds.Tables["inventoryitems"];
858 string selectExp = "avatarID = '" + Util.ToRawUuidString(avatarID) + "' AND assetType = " +
859 (int)AssetType.Gesture + " AND flags = 1";
860 m_log.DebugFormat("[SQL]: sql = " + selectExp);
861 DataRow[] rows = inventoryItemTable.Select(selectExp);
862 foreach (DataRow row in rows)
863 {
864 items.Add(buildItem(row));
865 }
866 return items;
867 }
868 }
850 } 869 }
851} 870}