Mantis#2730. Thank you kindly, StrawberryFride for a patch that:
MSSQL Fix to accommodate random ParentIDs. uint values now cleanly converted to ints and vice versa to hopefully prevent outofrange exceptions on prim storage.0.6.1-post-fixes
parent
67c260fdcc
commit
01fc0492d0
|
@ -930,7 +930,7 @@ VALUES
|
||||||
prim.UUID = new UUID((String)primRow["UUID"]);
|
prim.UUID = new UUID((String)primRow["UUID"]);
|
||||||
// explicit conversion of integers is required, which sort
|
// explicit conversion of integers is required, which sort
|
||||||
// of sucks. No idea if there is a shortcut here or not.
|
// of sucks. No idea if there is a shortcut here or not.
|
||||||
prim.ParentID = Convert.ToUInt32(primRow["ParentID"]);
|
prim.ParentID = (uint)Convert.ToInt32(primRow["ParentID"]);
|
||||||
prim.CreationDate = Convert.ToInt32(primRow["CreationDate"]);
|
prim.CreationDate = Convert.ToInt32(primRow["CreationDate"]);
|
||||||
prim.Name = (String)primRow["Name"];
|
prim.Name = (String)primRow["Name"];
|
||||||
// various text fields
|
// various text fields
|
||||||
|
@ -1307,7 +1307,7 @@ VALUES
|
||||||
{
|
{
|
||||||
row["UUID"] = prim.UUID.ToString();
|
row["UUID"] = prim.UUID.ToString();
|
||||||
row["RegionUUID"] = regionUUID.ToString();
|
row["RegionUUID"] = regionUUID.ToString();
|
||||||
row["ParentID"] = prim.ParentID;
|
row["ParentID"] = (int)prim.ParentID;
|
||||||
row["CreationDate"] = prim.CreationDate;
|
row["CreationDate"] = prim.CreationDate;
|
||||||
row["Name"] = prim.Name;
|
row["Name"] = prim.Name;
|
||||||
row["SceneGroupID"] = sceneGroupID.ToString();
|
row["SceneGroupID"] = sceneGroupID.ToString();
|
||||||
|
|
Loading…
Reference in New Issue