Author: kostat
Date: 2007-05-13 10:55:35 -0400 (Sun, 13 May 2007)
New Revision: 77315

Modified:
   trunk/mcs/class/System.Data/System.Data/DataTable.cs
Log:
Fix the type of the returned array

Modified: trunk/mcs/class/System.Data/System.Data/DataTable.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data/DataTable.cs        2007-05-13 
14:55:30 UTC (rev 77314)
+++ trunk/mcs/class/System.Data/System.Data/DataTable.cs        2007-05-13 
14:55:35 UTC (rev 77315)
@@ -2293,7 +2293,7 @@
                                columns = ParseSortString (this, sort, out 
sorts, false);
 
                        if (Rows.Count == 0)
-                               return new DataRow [0];
+                               return NewRowArray (0);
 
                        //if sort order is not given, sort it in Ascending 
order of the
                        //columns involved in the filter

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to