From ad6cff4a7209b32df24ca7c959f566a5ecc4c03c Mon Sep 17 00:00:00 2001 From: Daniel Morgan Date: Sat, 15 Mar 2003 10:18:39 +0000 Subject: 2003-03-15 Daniel Morgan * SqlConnection.cs: if Server in the ConnectionString is set to "(local", use "localhost" as the hostname to connect svn path=/trunk/mcs/; revision=12521 --- mcs/class/System.Data/System.Data.SqlClient/ChangeLog | 6 ++++++ mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs | 3 +++ 2 files changed, 9 insertions(+) (limited to 'mcs/class/System.Data/System.Data.SqlClient') 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 + + * SqlConnection.cs: if Server in the ConnectionString + is set to "(local", use "localhost" as the hostname + to connect + 2003-03-04 Gonzalo Paniagua Javier * 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; } -- cgit v1.2.3