From 831264fc984dee0c97776db133472ccd2c58d1a3 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 10 Jun 2009 17:53:06 +0000 Subject: Thank you kindly, BlueWall, for a patch that solves: SQLite error on creating user. --- OpenSim/Data/SQLite/SQLiteUserData.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Data/SQLite/SQLiteUserData.cs b/OpenSim/Data/SQLite/SQLiteUserData.cs index 74d2633..b9f3515 100644 --- a/OpenSim/Data/SQLite/SQLiteUserData.cs +++ b/OpenSim/Data/SQLite/SQLiteUserData.cs @@ -1016,7 +1016,7 @@ namespace OpenSim.Data.SQLite row["homeRegionX"] = user.HomeRegionX; row["homeRegionY"] = user.HomeRegionY; - row["homeRegionID"] = user.HomeRegionID; + row["homeRegionID"] = user.HomeRegionID.ToString(); row["homeLocationX"] = user.HomeLocation.X; row["homeLocationY"] = user.HomeLocation.Y; row["homeLocationZ"] = user.HomeLocation.Z; @@ -1026,16 +1026,16 @@ namespace OpenSim.Data.SQLite row["created"] = user.Created; row["lastLogin"] = user.LastLogin; - row["rootInventoryFolderID"] = user.RootInventoryFolderID; + row["rootInventoryFolderID"] = user.RootInventoryFolderID.ToString(); row["userInventoryURI"] = user.UserInventoryURI; row["userAssetURI"] = user.UserAssetURI; row["profileCanDoMask"] = user.CanDoMask; row["profileWantDoMask"] = user.WantDoMask; row["profileAboutText"] = user.AboutText; row["profileFirstText"] = user.FirstLifeAboutText; - row["profileImage"] = user.Image; - row["profileFirstImage"] = user.FirstLifeImage; - row["webLoginKey"] = user.WebLoginKey; + row["profileImage"] = user.Image.ToString(); + row["profileFirstImage"] = user.FirstLifeImage.ToString(); + row["webLoginKey"] = user.WebLoginKey.ToString(); row["userFlags"] = user.UserFlags; row["godLevel"] = user.GodLevel; row["customType"] = user.CustomType == null ? "" : user.CustomType; @@ -1149,12 +1149,12 @@ namespace OpenSim.Data.SQLite row["agentIP"] = ua.AgentIP; row["agentPort"] = ua.AgentPort; row["agentOnline"] = ua.AgentOnline; - row["sessionID"] = ua.SessionID; - row["secureSessionID"] = ua.SecureSessionID; - row["regionID"] = ua.InitialRegion; + row["sessionID"] = ua.SessionID.ToString(); + row["secureSessionID"] = ua.SecureSessionID.ToString(); + row["regionID"] = ua.InitialRegion.ToString(); row["loginTime"] = ua.LoginTime; row["logoutTime"] = ua.LogoutTime; - row["currentRegion"] = ua.Region; + row["currentRegion"] = ua.Region.ToString(); row["currentHandle"] = ua.Handle.ToString(); // vectors row["currentPosX"] = ua.Position.X; -- cgit v1.1