Permalink
Browse files

fix port resolution for unnamed instances

svn path=/trunk/mcs/; revision=54349
  • Loading branch information...
1 parent 112c395 commit 0940b7576fb2ba9054b62117727285809f624a7b Konstantin Triger committed Dec 14, 2005
@@ -1,3 +1,7 @@
+2005-14-12 Konstantin Triger <kostat@mainsoft.com>
+
+ * DbPortResolver.cs: fix port resolution for unnamed instances.
+
2005-27-11 Boris Kirzner <borisk@mainsoft.com>
AbstractDBCommand.cs: TARGET_JVM fix. Proper handle of return value
parameter and corresponding user parameter.
@@ -80,7 +80,7 @@ public static int getMSSqlPort(String sqlName, String instanceName,int timeout)
java.util.StringTokenizer st = new java.util.StringTokenizer(received, ";");
String prev = "";
- bool instanceReached = false;
+ bool instanceReached = instanceName == null || instanceName.Length == 0;
while (st.hasMoreTokens())
{
if (!instanceReached)

0 comments on commit 0940b75

Please sign in to comment.