aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL
diff options
context:
space:
mode:
authorMelanie2009-10-12 20:46:19 +0100
committerMelanie2009-10-12 20:46:19 +0100
commit09cd2ac4437e3905ba48b84e04559a0e606aa679 (patch)
tree0ecf32ee5512901a49175578f52ae6350fc026d5 /OpenSim/Data/MySQL
parentOptimize ODE mesh by removing sleep. On a region with 100,000 prims and ODE e... (diff)
downloadopensim-SC-09cd2ac4437e3905ba48b84e04559a0e606aa679.zip
opensim-SC-09cd2ac4437e3905ba48b84e04559a0e606aa679.tar.gz
opensim-SC-09cd2ac4437e3905ba48b84e04559a0e606aa679.tar.bz2
opensim-SC-09cd2ac4437e3905ba48b84e04559a0e606aa679.tar.xz
Stop null values from being returned on database queries
Diffstat (limited to 'OpenSim/Data/MySQL')
-rw-r--r--OpenSim/Data/MySQL/MySQLRegionData.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs
index 3b561d1..f514076 100644
--- a/OpenSim/Data/MySQL/MySQLRegionData.cs
+++ b/OpenSim/Data/MySQL/MySQLRegionData.cs
@@ -151,7 +151,10 @@ namespace OpenSim.Data.MySQL
151 151
152 DataTable schemaTable = result.GetSchemaTable(); 152 DataTable schemaTable = result.GetSchemaTable();
153 foreach (DataRow row in schemaTable.Rows) 153 foreach (DataRow row in schemaTable.Rows)
154 m_ColumnNames.Add(row["ColumnName"].ToString()); 154 {
155 if (row["ColumnName"] != null)
156 m_ColumnNames.Add(row["ColumnName"].ToString());
157 }
155 } 158 }
156 159
157 foreach (string s in m_ColumnNames) 160 foreach (string s in m_ColumnNames)