* SqlXmlTextReader.cs: applied patch from Chris Masters <[email protected]>
fix peek so it checks if it is at the end and also to make sure that if Read()
advances the position past the end of the localBuffer array, it makes
a call to GetNextBuffer(). fixes bug #40253 System.IndexOutOfRangeException when
using SqlCommand.ExecuteXmlReader()
svn path=/trunk/mcs/; revision=20797
* SqlParameterCollection.cs (Clear): Clear needs to take
the parameter out of the collection so that it can be used
again.
(Remove):
(RemoveAt): Ditto.
svn path=/trunk/mcs/; revision=20091
2003-10-03 Diego Caravana <[email protected]>
* Tds70.cs: Now handles parameters of type ReturnValue and
InputOutput.
(BuildParameters): skips the ReturnValue params and builds the
set string considering the assigned value for InputOutput ones.
(BuildProcedureCall): like the preceding one plus adds the return
value to the final select.
-----
System.Data/System.Data.SqlClient/ChangeLog
2003-10-03 Diego Caravana <[email protected]>
* SqlCommand.cs: no change.
* SqlConnection.cs (Close): Added checks for null instance
variables.
* SqlParameter.cs (Direction): Now handles parameters of type
ReturnValue and InputOutput.
* SqlParameterCollection.cs (IndexOf(string)): Search for
SqlParameter object in list is done by obtaining ParameterName
attribute, not directly through list.IndexOf().
svn path=/trunk/mcs/; revision=18782
The following two fixes bug #40315.
* Tds.cs (ProcessEndToken): RecordsAffected was not filled
correctly. I've found out that the record count was submitted for
TdsPacketSubType.Done. So I changed the behaviour to include this
(without deeper knowledge of the TDS protocol). Patch from J�rg
Rosenkranz <[email protected]>.
* SqlCommand.cs (ExecuteNonQuery): Return
Connection.Tds.RecordsAffected if it is successful. Patch from
J�rg Rosenkranz <[email protected]>.
* ListControl.cs (DataSource): Implementation by Brian Takita
<[email protected]>.
svn path=/trunk/mcs/; revision=17498
Rosenkranz <[email protected]>. Currently, if a connection is
closed by an external event (network problem, etc.) it is pushed
back into the connection pool. The next Open call retrieves this
invalid connection which leads to exceptions when executing
statements.
This patch fixes this problem. This closes bug #47429.
svn path=/trunk/mcs/; revision=17431
* SqlConnection.cs: if Server in the ConnectionString
is set to "(local", use "localhost" as the hostname
to connect
svn path=/trunk/mcs/; revision=12521
* ChangeLog: added this file
* SqlConnection.cs: - parse data source for 3 possible uses:
"Server=hostname",
"Server=hostname\\instancename",
"Server=hostname,port" and open the connection based on the
resulting server name and port.
- Added support for named instances
by discovery of the sql server tcp port via the sql monitor (udp port 1434)
thanks to Phillip Jerkins ([email protected]) contribution.
Also, thanks to Gonzalo and Tim for their help with timeouts.
svn path=/trunk/mcs/; revision=11623