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:
Diffstat (limited to 'mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs')
-rw-r--r--mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs3
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;
}