List:Commits« Previous MessageNext Message »
From:rburnett Date:January 5 2007 7:55pm
Subject:Connector/NET commit: r537 - branches/5.0/Driver/Source
View as plain text  
Modified:
   branches/5.0/Driver/Source/SchemaProvider.cs
Log:
Fixed a problem in GetTables where GetDatabases was being called improperly.  GetDatabases takes only a single element array that can contain the restriction where GetTables has the dbname as the second element.  

Modified: branches/5.0/Driver/Source/SchemaProvider.cs
===================================================================
--- branches/5.0/Driver/Source/SchemaProvider.cs	2007-01-05 19:35:01 UTC (rev 536)
+++ branches/5.0/Driver/Source/SchemaProvider.cs	2007-01-05 19:55:53 UTC (rev 537)
@@ -103,7 +103,11 @@
             dt.Columns.Add("CREATE_OPTIONS", typeof(string));
             dt.Columns.Add("TABLE_COMMENT", typeof(string));
 
-            DataTable databases = GetDatabases(restrictions);
+            // we have to new up a new restriction array here since
+            // GetDatabases takes the database in the first slot
+            string[] dbRestriction = new string[1] { restrictions[1] };
+            DataTable databases = GetDatabases(dbRestriction);
+
             foreach (DataRow db in databases.Rows)
             {
                 restrictions[1] = db["SCHEMA_NAME"].ToString();

Thread
Connector/NET commit: r537 - branches/5.0/Driver/Sourcerburnett5 Jan