Some more corrections after MySQL connector update
parent
8a0c5d14d4
commit
deae030145
|
@ -33,6 +33,7 @@ using log4net;
|
|||
using MySql.Data.MySqlClient;
|
||||
using OpenMetaverse;
|
||||
using OpenSim.Framework;
|
||||
using OpenSim.Data;
|
||||
|
||||
namespace OpenSim.Data.MySQL
|
||||
{
|
||||
|
@ -320,7 +321,7 @@ namespace OpenSim.Data.MySQL
|
|||
metadata.Type = (sbyte)dbReader["assetType"];
|
||||
metadata.Temporary = Convert.ToBoolean(dbReader["temporary"]); // Not sure if this is correct.
|
||||
metadata.Flags = (AssetFlags)Convert.ToInt32(dbReader["asset_flags"]);
|
||||
metadata.FullID = new UUID((string)dbReader["id"]);
|
||||
metadata.FullID = DBGuid.FromDB(dbReader["id"]);
|
||||
|
||||
// Current SHA1s are not stored/computed.
|
||||
metadata.SHA1 = new byte[] { };
|
||||
|
|
|
@ -287,7 +287,7 @@ namespace OpenSim.Data.MySQL
|
|||
|
||||
// TODO: this is to handle a case where NULLs creep in there, which we are not sure is endemic to the system, or legacy. It would be nice to live fix these.
|
||||
// ( DBGuid.FromDB() reads db NULLs as well, returns UUID.Zero )
|
||||
item.CreatorId = DBGuid.FromDB(reader["creatorID"]).ToString();
|
||||
item.CreatorId = reader["creatorID"].ToString();
|
||||
|
||||
// Be a bit safer in parsing these because the
|
||||
// database doesn't enforce them to be not null, and
|
||||
|
|
Loading…
Reference in New Issue