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
Sean Dague 2008-10-03 12:36:54 +00:00
parent ec47a1bff2
commit 5f8e241e81
1 changed files with 2 additions and 1 deletions

View File

@ -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>