in src/PDWScripter/TableSt.cs [52:78]
public virtual Boolean ColumnEquals (object obj)
{
if (obj == null) return false;
List<ColumnDef> otherColumns = obj as List<ColumnDef>;
if (otherColumns != null)
{
if (this == null || otherColumns == null) return false;
if (this.Columns.Count != otherColumns.Count) return false;
this.Columns.Sort((a, b) => a.name.ToUpper().CompareTo(b.name));
otherColumns.Sort((a, b) => a.name.ToUpper().CompareTo(b.name));
for (int i = 0; i < this.Columns.Count; i++)
{
if (this.Columns[i].column_id != otherColumns[i].column_id) return false;
if (this.Columns[i].name != otherColumns[i].name) return false;
if (this.Columns[i].type != otherColumns[i].type) return false;
if (this.Columns[i].max_length != otherColumns[i].max_length) return false;
if (this.Columns[i].precision != otherColumns[i].precision) return false;
if (this.Columns[i].scale != otherColumns[i].scale) return false;
if (this.Columns[i].is_nullable != otherColumns[i].is_nullable) return false;
if (this.Columns[i].distrbution_ordinal != otherColumns[i].distrbution_ordinal) return false;
if (this.Columns[i].collation_name != otherColumns[i].collation_name) return false;
if (this.Columns[i].defaultconstraint != otherColumns[i].defaultconstraint) return false;
}
}
return true;
}