fix the sqlite break. There were two issue here:
1. type issues on column create in ado.net 2. not setting a field in the ado.net row translates into explicitely setting it to null in sqlite land (because it can't read the defaults stanzas out of the database) Things should work again after this.0.6.0-stable
parent
ec47a1bff2
commit
5f8e241e81
|
@ -859,7 +859,7 @@ namespace OpenSim.Data.SQLite
|
||||||
// click action
|
// click action
|
||||||
createCol(prims, "ClickAction", typeof (Byte));
|
createCol(prims, "ClickAction", typeof (Byte));
|
||||||
|
|
||||||
createCol(prims, "Material", typeof(Int32));
|
createCol(prims, "Material", typeof(Byte));
|
||||||
|
|
||||||
// Add in contraints
|
// Add in contraints
|
||||||
prims.PrimaryKey = new DataColumn[] {prims.Columns["UUID"]};
|
prims.PrimaryKey = new DataColumn[] {prims.Columns["UUID"]};
|
||||||
|
@ -1535,6 +1535,7 @@ namespace OpenSim.Data.SQLite
|
||||||
row["ClickAction"] = prim.ClickAction;
|
row["ClickAction"] = prim.ClickAction;
|
||||||
|
|
||||||
row["SalePrice"] = prim.SalePrice;
|
row["SalePrice"] = prim.SalePrice;
|
||||||
|
row["Material"] = prim.Material;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue