diff options
author | Melanie | 2009-10-12 20:46:19 +0100 |
---|---|---|
committer | Melanie | 2009-10-12 20:46:19 +0100 |
commit | 09cd2ac4437e3905ba48b84e04559a0e606aa679 (patch) | |
tree | 0ecf32ee5512901a49175578f52ae6350fc026d5 /OpenSim/Data/MySQL | |
parent | Optimize ODE mesh by removing sleep. On a region with 100,000 prims and ODE e... (diff) | |
download | opensim-SC_OLD-09cd2ac4437e3905ba48b84e04559a0e606aa679.zip opensim-SC_OLD-09cd2ac4437e3905ba48b84e04559a0e606aa679.tar.gz opensim-SC_OLD-09cd2ac4437e3905ba48b84e04559a0e606aa679.tar.bz2 opensim-SC_OLD-09cd2ac4437e3905ba48b84e04559a0e606aa679.tar.xz |
Stop null values from being returned on database queries
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLRegionData.cs | 5 |
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) |