Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Morgan <monodanmorg@yahoo.com>2003-03-15 13:18:39 +0300
committerDaniel Morgan <monodanmorg@yahoo.com>2003-03-15 13:18:39 +0300
commitad6cff4a7209b32df24ca7c959f566a5ecc4c03c (patch)
tree13faf91e8e0b9a116cb81c5e405669bea119230e /mcs/class/System.Data/System.Data.SqlClient
parent3618f03441549caa47097c382727aab049804bcf (diff)
2003-03-15 Daniel Morgan <danmorg@sc.rr.com>
* SqlConnection.cs: if Server in the ConnectionString is set to "(local", use "localhost" as the hostname to connect svn path=/trunk/mcs/; revision=12521
Diffstat (limited to 'mcs/class/System.Data/System.Data.SqlClient')
-rwxr-xr-xmcs/class/System.Data/System.Data.SqlClient/ChangeLog6
-rw-r--r--mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs3
2 files changed, 9 insertions, 0 deletions
diff --git a/mcs/class/System.Data/System.Data.SqlClient/ChangeLog b/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
index d1f214d0468..5f5b050e3ce 100755
--- a/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
+++ b/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
@@ -1,3 +1,9 @@
+2003-03-15 Daniel Morgan <danmorg@sc.rr.com>
+
+ * SqlConnection.cs: if Server in the ConnectionString
+ is set to "(local", use "localhost" as the hostname
+ to connect
+
2003-03-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* SqlException.cs: implemented GetObjectData ().
diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs
index ef49147c00f..b549b12fa3b 100644
--- a/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs
+++ b/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs
@@ -403,6 +403,9 @@ namespace System.Data.SqlClient {
theServerName = theDataSource;
}
+ if(theServerName.Equals("(local)"))
+ theServerName = "localhost";
+
return success;
}