Some more corrections after MySQL connector update
parent
8a0c5d14d4
commit
deae030145
|
@ -33,6 +33,7 @@ using log4net;
|
||||||
using MySql.Data.MySqlClient;
|
using MySql.Data.MySqlClient;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using OpenSim.Framework;
|
using OpenSim.Framework;
|
||||||
|
using OpenSim.Data;
|
||||||
|
|
||||||
namespace OpenSim.Data.MySQL
|
namespace OpenSim.Data.MySQL
|
||||||
{
|
{
|
||||||
|
@ -320,7 +321,7 @@ namespace OpenSim.Data.MySQL
|
||||||
metadata.Type = (sbyte)dbReader["assetType"];
|
metadata.Type = (sbyte)dbReader["assetType"];
|
||||||
metadata.Temporary = Convert.ToBoolean(dbReader["temporary"]); // Not sure if this is correct.
|
metadata.Temporary = Convert.ToBoolean(dbReader["temporary"]); // Not sure if this is correct.
|
||||||
metadata.Flags = (AssetFlags)Convert.ToInt32(dbReader["asset_flags"]);
|
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.
|
// Current SHA1s are not stored/computed.
|
||||||
metadata.SHA1 = new byte[] { };
|
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.
|
// 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 )
|
// ( 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
|
// Be a bit safer in parsing these because the
|
||||||
// database doesn't enforce them to be not null, and
|
// database doesn't enforce them to be not null, and
|
||||||
|
|
Loading…
Reference in New Issue