diff options
author | Teravus Ovares | 2008-03-09 14:27:44 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-03-09 14:27:44 +0000 |
commit | 13a4d13d670974e7108ccce98a335ad634d77f65 (patch) | |
tree | a62811e9a9ae451e24134c7d5eec9ba6672e488c /OpenSim | |
parent | Linux Compile error if Color is compared against null. Documentation for Syst... (diff) | |
download | opensim-SC_OLD-13a4d13d670974e7108ccce98a335ad634d77f65.zip opensim-SC_OLD-13a4d13d670974e7108ccce98a335ad634d77f65.tar.gz opensim-SC_OLD-13a4d13d670974e7108ccce98a335ad634d77f65.tar.bz2 opensim-SC_OLD-13a4d13d670974e7108ccce98a335ad634d77f65.tar.xz |
* Added a hack-ish routine to add the State column to the primshapes table if it wasn't already there.
* Started OpenSim on SQLite to a mass of red 'unable to load prim' messages.
* If you are getting this message, after this update, when you start OpenSimulator, you'll get it one more time and then it'll work again.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs b/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs index d41dd55..b724337 100644 --- a/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs +++ b/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs | |||
@@ -1171,7 +1171,17 @@ namespace OpenSim.Framework.Data.SQLite | |||
1171 | s.ProfileEnd = Convert.ToUInt16(row["ProfileEnd"]); | 1171 | s.ProfileEnd = Convert.ToUInt16(row["ProfileEnd"]); |
1172 | s.ProfileCurve = Convert.ToByte(row["ProfileCurve"]); | 1172 | s.ProfileCurve = Convert.ToByte(row["ProfileCurve"]); |
1173 | s.ProfileHollow = Convert.ToUInt16(row["ProfileHollow"]); | 1173 | s.ProfileHollow = Convert.ToUInt16(row["ProfileHollow"]); |
1174 | s.State = Convert.ToByte(row["State"]); | 1174 | try |
1175 | { | ||
1176 | s.State = Convert.ToByte(row["State"]); | ||
1177 | } | ||
1178 | catch (InvalidCastException) | ||
1179 | { | ||
1180 | m_conn.Open(); | ||
1181 | SqliteCommand cmd = | ||
1182 | new SqliteCommand("ALTER TABLE primshapes ADD COLUMN State Integer NOT NULL default 0;", m_conn); | ||
1183 | cmd.ExecuteNonQuery(); | ||
1184 | } | ||
1175 | // text TODO: this isn't right] = but I'm not sure the right | 1185 | // text TODO: this isn't right] = but I'm not sure the right |
1176 | // way to specify this as a blob atm | 1186 | // way to specify this as a blob atm |
1177 | 1187 | ||