Switch prim items type representation to use int rather than strings.

This commit is contained in:
Justin Clarke Casey
2008-01-11 14:55:27 +00:00
parent 8ccc470e2a
commit 1e981a7c1c
5 changed files with 17 additions and 22 deletions

View File

@@ -690,8 +690,8 @@ namespace OpenSim.Framework.Data.SQLite
createCol(items, "assetID", typeof (String));
createCol(items, "parentFolderID", typeof (String));
createCol(items, "invType", typeof (String));
createCol(items, "assetType", typeof (String));
createCol(items, "invType", typeof (Int32));
createCol(items, "assetType", typeof (Int32));
createCol(items, "name", typeof (String));
createCol(items, "description", typeof (String));
@@ -895,8 +895,8 @@ namespace OpenSim.Framework.Data.SQLite
taskItem.asset_id = new LLUUID((String)row["assetID"]);
taskItem.parent_id = new LLUUID((String)row["parentFolderID"]);
taskItem.inv_type = (String)row["invType"];
taskItem.type = (String)row["assetType"];
taskItem.inv_type = Convert.ToInt32(row["invType"]);
taskItem.type = Convert.ToInt32(row["assetType"]);
taskItem.name = (String)row["name"];
taskItem.desc = (String)row["description"];