From 1e981a7c1cbf6abf1e60cf2ddc3ce9074d6543a6 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 11 Jan 2008 14:55:27 +0000 Subject: Switch prim items type representation to use int rather than strings. --- OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Framework/Data.SQLite') diff --git a/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs b/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs index 00b0acb..96dd5ac 100644 --- a/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs +++ b/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs @@ -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"]; -- cgit v1.1