Bug #43990 NumberOfRestrictions named NumberOfRestriction
Submitted: 31 Mar 2009 16:44 Modified: 6 Apr 2009 10:25
Reporter: Tonci Grgin Email Updates:
Status: Closed Impact on me:
Category:Connector / NET Severity:S2 (Serious)
Version: OS:Any
Assigned to: Reggie Burnett CPU Architecture:Any

[31 Mar 2009 16:44] Tonci Grgin
According to http://msdn.microsoft.com/en-us/library/system.data.common.dbmetadatacolumnnames.numberofr...
GetSchema("MetaDataCollections") DataTable column should be named "NumberOfRestrictions".

How to repeat:
Check SchemaProvider.cs, Ln: 619: 
  dt.Columns.Add(new DataColumn("NumberOfRestriction", typeof (int)));

Suggested fix:
Please change SchemaProvider.cs, Ln: 619 to:
  dt.Columns.Add(new DataColumn("NumberOfRestrictions", typeof (int)));
[31 Mar 2009 16:50] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

[31 Mar 2009 16:51] Reggie Burnett
fixed in 5.2.6 and higher
[6 Apr 2009 10:25] Tony Bedford
An entry was added to the 5.2.6 changelog:

GetSchema("MetaDataCollections") should return a table with a column named “NumberOfRestrictions” not “NumberOfRestriction”.

This can be confirmed by referencing the Microsoft Documentation ("http://msdn.microsoft.com/en-us/library/system.data.common.dbmetadatacolumnnames.numberofr