diff options
author | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2005-02-02 14:10:48 +0300 |
---|---|---|
committer | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2005-02-02 14:10:48 +0300 |
commit | ad91310f637f2481bdd02d91dfff0e472eaa120f (patch) | |
tree | 6339475c7941a717b03a96a8e5deac7fff1c714f | |
parent | a0d742e6f3617f002c3e6123299291d9c0cc00e5 (diff) |
2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
* TdsConnectionParameters.cs: added a method Reset to initialize
parameters again.
svn path=/trunk/mcs/; revision=39977
-rw-r--r-- | mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsConnectionParameters.cs | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/ChangeLog b/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/ChangeLog index 79dadaed8c6..13a51441ddb 100644 --- a/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/ChangeLog +++ b/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/ChangeLog @@ -1,3 +1,8 @@ +2005-02-02 Sureshkumar T <tsureshkumar@novell.com> + + * TdsConnectionParameters.cs: added a method Reset to initialize + parameters again. + 2005-01-16 Daniel Morgan <danielmorgan@verizon.net> * Tds.cs: TDS 5.0 (Sybase) needs to get a DECIMAL diff --git a/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsConnectionParameters.cs b/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsConnectionParameters.cs index e11975b97da..5b9fa055f85 100644 --- a/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsConnectionParameters.cs +++ b/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsConnectionParameters.cs @@ -45,5 +45,20 @@ namespace Mono.Data.Tds.Protocol { public string User = String.Empty; public bool DomainLogin = false; public string DefaultDomain = String.Empty; + + public void Reset () + { + ApplicationName = "Mono"; + Database = String.Empty; + Charset = String.Empty; + Hostname = System.Net.Dns.GetHostName(); + Language = String.Empty; + LibraryName = "Mono"; + Password = String.Empty; + ProgName = "Mono"; + User = String.Empty; + DomainLogin = false; + DefaultDomain = String.Empty; + } } } |