diff options
author | Daniel Morgan <monodanmorg@yahoo.com> | 2003-03-15 13:18:39 +0300 |
---|---|---|
committer | Daniel Morgan <monodanmorg@yahoo.com> | 2003-03-15 13:18:39 +0300 |
commit | ad6cff4a7209b32df24ca7c959f566a5ecc4c03c (patch) | |
tree | 13faf91e8e0b9a116cb81c5e405669bea119230e /mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs | |
parent | 3618f03441549caa47097c382727aab049804bcf (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/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; } |