mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
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.
This commit is contained in:
@@ -859,7 +859,7 @@ namespace OpenSim.Data.SQLite
|
||||
// click action
|
||||
createCol(prims, "ClickAction", typeof (Byte));
|
||||
|
||||
createCol(prims, "Material", typeof(Int32));
|
||||
createCol(prims, "Material", typeof(Byte));
|
||||
|
||||
// Add in contraints
|
||||
prims.PrimaryKey = new DataColumn[] {prims.Columns["UUID"]};
|
||||
@@ -1535,6 +1535,7 @@ namespace OpenSim.Data.SQLite
|
||||
row["ClickAction"] = prim.ClickAction;
|
||||
|
||||
row["SalePrice"] = prim.SalePrice;
|
||||
row["Material"] = prim.Material;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user