diff options
Diffstat (limited to 'mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs')
-rw-r--r-- | mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |