Stop null values from being returned on database queries

prioritization
Melanie 2009-10-12 20:46:19 +01:00
parent fe0940a22f
commit 09cd2ac443
1 changed files with 4 additions and 1 deletions

View File

@ -151,7 +151,10 @@ namespace OpenSim.Data.MySQL
DataTable schemaTable = result.GetSchemaTable(); DataTable schemaTable = result.GetSchemaTable();
foreach (DataRow row in schemaTable.Rows) foreach (DataRow row in schemaTable.Rows)
m_ColumnNames.Add(row["ColumnName"].ToString()); {
if (row["ColumnName"] != null)
m_ColumnNames.Add(row["ColumnName"].ToString());
}
} }
foreach (string s in m_ColumnNames) foreach (string s in m_ColumnNames)