diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/Data.SQLite/SQLiteUserData.cs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs b/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs index ea26592..f1e5afa 100644 --- a/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs +++ b/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs | |||
@@ -299,7 +299,7 @@ namespace OpenSim.Framework.Data.SQLite | |||
299 | createCol(users, "passwordHash", typeof(System.String)); | 299 | createCol(users, "passwordHash", typeof(System.String)); |
300 | createCol(users, "passwordSalt", typeof(System.String)); | 300 | createCol(users, "passwordSalt", typeof(System.String)); |
301 | 301 | ||
302 | createCol(users, "homeRegion", typeof(System.UInt32)); | 302 | createCol(users, "homeRegion", typeof(System.UInt64)); |
303 | createCol(users, "homeLocationX", typeof(System.Double)); | 303 | createCol(users, "homeLocationX", typeof(System.Double)); |
304 | createCol(users, "homeLocationY", typeof(System.Double)); | 304 | createCol(users, "homeLocationY", typeof(System.Double)); |
305 | createCol(users, "homeLocationZ", typeof(System.Double)); | 305 | createCol(users, "homeLocationZ", typeof(System.Double)); |
@@ -367,7 +367,7 @@ namespace OpenSim.Framework.Data.SQLite | |||
367 | user.passwordHash = (string)row["passwordHash"]; | 367 | user.passwordHash = (string)row["passwordHash"]; |
368 | user.passwordSalt = (string)row["passwordSalt"]; | 368 | user.passwordSalt = (string)row["passwordSalt"]; |
369 | 369 | ||
370 | user.homeRegion = Convert.ToUInt32(row["homeRegion"]); | 370 | user.homeRegion = Convert.ToUInt64(row["homeRegion"]); |
371 | user.homeLocation = new LLVector3( | 371 | user.homeLocation = new LLVector3( |
372 | Convert.ToSingle(row["homeLocationX"]), | 372 | Convert.ToSingle(row["homeLocationX"]), |
373 | Convert.ToSingle(row["homeLocationY"]), | 373 | Convert.ToSingle(row["homeLocationY"]), |
@@ -635,6 +635,12 @@ namespace OpenSim.Framework.Data.SQLite | |||
635 | return DbType.String; | 635 | return DbType.String; |
636 | } else if (type == typeof(System.Int32)) { | 636 | } else if (type == typeof(System.Int32)) { |
637 | return DbType.Int32; | 637 | return DbType.Int32; |
638 | } else if (type == typeof(System.UInt32)) { | ||
639 | return DbType.UInt32; | ||
640 | } else if (type == typeof(System.Int64)) { | ||
641 | return DbType.Int64; | ||
642 | } else if (type == typeof(System.UInt64)) { | ||
643 | return DbType.UInt64; | ||
638 | } else if (type == typeof(System.Double)) { | 644 | } else if (type == typeof(System.Double)) { |
639 | return DbType.Double; | 645 | return DbType.Double; |
640 | } else if (type == typeof(System.Byte[])) { | 646 | } else if (type == typeof(System.Byte[])) { |
@@ -652,6 +658,12 @@ namespace OpenSim.Framework.Data.SQLite | |||
652 | return "varchar(255)"; | 658 | return "varchar(255)"; |
653 | } else if (type == typeof(System.Int32)) { | 659 | } else if (type == typeof(System.Int32)) { |
654 | return "integer"; | 660 | return "integer"; |
661 | } else if (type == typeof(System.UInt32)) { | ||
662 | return "integer"; | ||
663 | } else if (type == typeof(System.Int64)) { | ||
664 | return "integer"; | ||
665 | } else if (type == typeof(System.UInt64)) { | ||
666 | return "integer"; | ||
655 | } else if (type == typeof(System.Double)) { | 667 | } else if (type == typeof(System.Double)) { |
656 | return "float"; | 668 | return "float"; |
657 | } else if (type == typeof(System.Byte[])) { | 669 | } else if (type == typeof(System.Byte[])) { |