Stop null values from being returned on database queries
parent
fe0940a22f
commit
09cd2ac443
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue