mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
* Updates the SQLite region database to support the same properties that the MySQL version does for the table, prims.
* If this causes any unit tests to fail, the tests need to be updated.
This commit is contained in:
@@ -205,6 +205,14 @@ namespace OpenSim.Data.Tests
|
||||
// common failure case is people adding new fields that aren't
|
||||
// initialized, but have non-null db constraints. We should
|
||||
// honestly be passing more and more null things in here.
|
||||
//
|
||||
// Please note that in Sqlite.BuildPrim there is a commented out inline version
|
||||
// of this so you can debug and step through the build process and check the fields
|
||||
//
|
||||
// Real World Value: Tests for situation where extending a SceneObjectGroup/SceneObjectPart
|
||||
// causes the application to crash at the database layer because of null values
|
||||
// in NOT NULL fields
|
||||
//
|
||||
private SceneObjectGroup NewSOG(string name)
|
||||
{
|
||||
SceneObjectGroup sog = new SceneObjectGroup();
|
||||
@@ -218,7 +226,8 @@ namespace OpenSim.Data.Tests
|
||||
sop.UUID = UUID.Random();
|
||||
sop.Shape = PrimitiveBaseShape.Default;
|
||||
sog.AddPart(sop);
|
||||
sog.RootPart = sop;
|
||||
sog.RootPart = sop;
|
||||
|
||||
return sog;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user