diff options
Diffstat (limited to 'mcs/class/System.Data/System.Data.SqlClient')
-rwxr-xr-x | mcs/class/System.Data/System.Data.SqlClient/ChangeLog | 6 | ||||
-rw-r--r-- | mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs | 3 |
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; } |