Commit Graph
117 Commits
Author SHA1 Message Date
Sureshkumar T a20bdd56e5 2005-03-28 Sureshkumar T <[email protected]>
* SqlCommand.cs: Execute: Add a semicolon at the end of
	CommandText. Multiple semicolon's are not being complained.

	fixes bug #74134.


svn path=/trunk/mcs/; revision=42305
2005-03-28 10:45:48 +00:00
Sureshkumar T 6bcb9cca06 err.. forgot to remove Console.WriteLine debug message.
svn path=/trunk/mcs/; revision=41521
2005-03-07 13:43:30 +00:00
Sureshkumar T aa267ef781 2005-03-07 Sureshkumar T <[email protected]>
* SqlCommand.cs : Set CommandBehavior on
	ExecuteReader,ExecuteScalar,ExecuteNonQuery. This is used in
	CloseDataReader.

	This fixes bug #73252.


svn path=/trunk/mcs/; revision=41519
2005-03-07 13:30:52 +00:00
Sureshkumar T 0c88f4428c 2005-01-27 Sureshkumar T <[email protected]>
* SqlCommand.cs (DeriveParameters): Change parameter name to
	"procedure_name".
	* SqlParameter.cs (SqlParameter (object [])) : call default
	constructor to create Tds.Metaparameter.

	fixes bug #63122.


svn path=/trunk/mcs/; revision=39636
2005-01-27 11:18:28 +00:00
Sureshkumar T 369684c152 2005-01-03 Sureshkumar T <[email protected]>
* SqlCommand.cs: Fixed bug #68973. Reset Tds.RecordsAffected to 0
	for each execute statement.
	

svn path=/trunk/mcs/; revision=38270
2005-01-03 12:31:29 +00:00
Sureshkumar T ebcc19d3c5 2004-11-25 Sureshkumar T <[email protected]>
These changes are for 2.0 profile only. These changes implement
	the generic data base access technique using Provider Factory
	Implementation. These classes need to be dervided from abstract
	base classes so that the corresponding factory classes are
	created when calling CreateCommand, CreateParameter, etc.
	
	* SqlClientFactory.cs: Provider Factory class  Implementaion for SqlServer
	* SqlParameter.cs: Change base classes and override methods.
	* SqlParameterCollection.cs:  Change base classes and override methods.
	* SqlTransaction.cs:  Change base classes and override methods.
	* SqlDataSourceEnumerator.cs: DataSource Enumerator stubs.
	* SqlDataReader.cs: Change base classes and override methods.
	* SqlConnection.cs: Change base classes and override methods.
	* SqlCommandBuilder.cs: Change base classes and override methods.
	* SqlCommand.cs: Change base classes and override necessary methods.


svn path=/trunk/mcs/; revision=36527
2004-11-25 09:54:04 +00:00
Umadevi S c7949f2d08 2004-10-14 Umadevi S <[email protected]>
* SqlCommand.cs - Implemented the clone method correctly.
         (fixed bug 67301)

svn path=/trunk/mcs/; revision=34964
2004-10-14 04:39:04 +00:00
Umadevi S b4fda1b3a6 2004-09-02 Umadevi S <[email protected]>
* SqlCommand.cs - ExecuteNonQuery to return -1 incase of executing a storedprocedure

svn path=/trunk/mcs/; revision=33196
2004-09-02 08:30:16 +00:00
Umadevi S e2e9c7e803 2004-06-30 Umadevi S <[email protected]>
* SqlCommand.cs : In the Execute Method the commandbehavior parameters were ignored correct
these Fixes bugs 59946 and 59948.

svn path=/trunk/mcs/; revision=30561
2004-06-30 04:23:58 +00:00
Umadevi S aeb993c977 2004-06-18 Umadevi S <[email protected]>
* SqlCommand.cs - ExecuteNonQuery returns -1 in all cases except
                insert,update or delete.

svn path=/trunk/mcs/; revision=29849
2004-06-18 06:01:40 +00:00
Sachin Kumar ec81df777c Add license and copyright to all source files in System.Data
svn path=/trunk/mcs/; revision=29688
2004-06-16 13:52:11 +00:00
Umadevi S d788e9aec7 2004-05-13 Umadevi S <[email protected]>
*  SqlClientPermission.cs, SqlDataReader.cs - added missing methods with TODO tags
        *  SqlCommand.cs, SqlDataAdapter.cs - implemented ToolboxItemAttribute
        *  SQLDebugging.cs - Added new file with a TODO tag

svn path=/trunk/mcs/; revision=27229
2004-05-13 05:29:56 +00:00
Tim Coleman 9958493fcd 2004-03-14 Tim Coleman <[email protected]>
* SqlCommand.cs SqlConnection.cs:
		Changes from two patches by Andres Taylor
		<[email protected]>

svn path=/trunk/mcs/; revision=24034
2004-03-15 02:54:32 +00:00
Umadevi S 37fed03ce9 2004-03-10 Umadevi S ([email protected])
* SqlCommand.cs - Implemented EditorAttribute and DesignerAttribute

svn path=/trunk/mcs/; revision=23867
2004-03-10 05:08:39 +00:00
Gonzalo Paniagua Javier 92b5c16df5 Mono.Data.Tds/Mono.Data.Tds.Protocol/ChangeLog
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
2003-10-08 23:41:01 +00:00
Duncan Mak 1819079b83 Late night patch applying actions ...
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
2003-08-22 04:37:11 +00:00
Gonzalo Paniagua Javier 8d29a839ff 2002-12-10 Gonzalo Paniagua Javier <[email protected]>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs:
	(Disconnect): close the stream and set connected to false.
	(NextResult): check if after DoneProc we have a ColumnMetadata + Row,
	which holds the values for the output parameters and read them.
	(LoadRow): add the values to outputParameters if DoneProc.
	When executing a stored procedure, we execute the procedure and then
	select the parameter values.

	* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs:
	(BuildParameters): check Parameters.

	* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsComm.cs: added Close () to
	close the stream.

	* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsConnectionParameters.cs:
	initialize all the string to be empty.

	* System.Data/System.Data.SqlClient/SqlCommand.cs:
	(CloseReader): don't get the output parameters here.
	(GetOutputParameters): don't skip the stream. The parameters will be
	there.

	* System.Data/System.Data.SqlClient/SqlConnection.cs: don't try to
	execute 'sp_reset_connection'.

	* System.Data/System.Data.SqlClient/SqlDataReader.cs: get the output
	parameters after the end of the results.

svn path=/trunk/mcs/; revision=9534
2002-12-10 18:08:08 +00:00
Tim Coleman db177b4a47 2002-11-26 Tim Coleman <[email protected]>
* System.Data.SqlClient/SqlCommand.cs:
        * System.Data.SqlClient/SqlConnection.cs:
        * System.Data.SqlClient/SqlDataReader.cs:
        * System.Data.SqlClient/SqlParameter.cs:
        * System.Data.SqlClient/SqlParameterCollection.cs:
        * System.Data.SqlClient/SqlTransaction.cs:
                Many changes around restructuring of parameter
                information so that the Sybase provider supports
                PREPAREs too.

svn path=/trunk/mcs/; revision=9193
2002-11-26 06:33:28 +00:00
Tim Coleman 50793b9078 2002-11-21 Tim Coleman <[email protected]>
* System.Data.build:
        * System.Data.SqlClient/SqlCommand.cs:
        * System.Data.SqlClient/SqlConnection.cs:
        * System.Data.SqlClient/SqlConnectionPool.cs:
        * System.Data.SqlClient/SqlDataReader.cs:
        * System.Data.SqlClient/SqlException.cs:
        * System.Data.SqlClient/SqlInfoMessageEventArgs.cs:
        * System.Data.SqlClient/SqlParameter.cs:
        * System.Data.SqlClient/SqlTransaction.cs:
        * System.Data.SqlClient/SqlXmlTextReader.cs:
        * System.Data.SqlTypes/SqlDecimal.cs:
                Modify to accept new Mono.Data.Tds.Protocol
                namespace in Mono.Data.Tds assembly, replacing
                Mono.Data.TdsClient.Internal

svn path=/trunk/mcs/; revision=9131
2002-11-21 16:55:20 +00:00
Tim Coleman bf8dbc7147 2002-11-18 Tim Coleman <[email protected]>
* System.Data.SqlClient/SqlCommand.cs:
                Add a TODO.
        * System.Data.SqlClient/SqlDataReader.cs:
                Add support to get SQL Types
        * System.Data.SqlClient/SqlParameter.cs:
                Add some comments to describe what is going on.

svn path=/trunk/mcs/; revision=9064
2002-11-19 00:28:49 +00:00
Tim Coleman 2c610eea56 Fix things that made tests fail from last checkin.
svn path=/trunk/mcs/; revision=9005
2002-11-16 05:45:38 +00:00
Tim Coleman 348806b401 2002-11-15 Tim Coleman <[email protected]>
* System.Data.Common/DbDataPermission.cs:
        * System.Data.SqlClient/SqlClientPermission.cs:
                Make these agree on the class status page.
        * System.Data.SqlClient/SqlCommand.cs:
                - Fix up handling of GUID and [Var]Binary, and Image types
        * System.Data.SqlClient/SqlParameter.cs:
                - Provide support for conversion between Type,
                  DbType, SqlDbType, and the SQL server type names.
                - Fix up handling of GUID and [Var]Binary types
        * System.Data.SqlClient/SqlParameterCollection.cs:
                Correct all of the Add methods.
        * Test/SqlTest.cs:
                - Add more types to test: unique identifier, binary,
                  image, smalldatetime, money, smallmoney, timestamp

svn path=/trunk/mcs/; revision=9003
2002-11-16 04:14:16 +00:00
Tim Coleman da76a83b30 2002-11-15 Tim Coleman <[email protected]>
* Test/SqlTest.cs:
                - Add more types to test: unique identifier, binary
                  types.
        * System.Data.SqlClient/SqlParameter.cs:
                - Provide support for conversion between Type,
                  DbType, SqlDbType, and the SQL server type names.
                - Fix up handling of GUID and [Var]Binary types
        * System.Data.SqlClient/SqlCommand.cs:
                - Fix up handling of GUID and [Var]Binary types

svn path=/trunk/mcs/; revision=8992
2002-11-15 06:53:30 +00:00
Tim Coleman 0f2a4f2e40 2002-11-14 Tim Coleman <[email protected]>
* System.Data.SqlClient/SqlCommand.cs:
                Slight reformatting of Bit values and sql statements
        * System.Data.SqlClient/SqlDataReader.cs:
                Implement RecordsAffected
                Complete SchemaTable
        * System.Data.SqlClient/SqlParameter.cs:
                Propertly support Char/NChar
        * System.Data.SqlClient/SqlXmlTextReader.cs:
                Add Close () to the Dispose () method

svn path=/trunk/mcs/; revision=8986
2002-11-14 21:59:53 +00:00
Tim Coleman 2c55c80d7c 2002-11-13 Tim Coleman <[email protected]>
* Test/SqlTest.cs:
                New class added for testing SqlClient
        * System.Data.SqlClient/SqlCommand.cs:
                Add handling for SqlDbType.Bit
        * System.Data.SqlClient/SqlConnection.cs:
                Implement Dispose () methods.
                Change ConnectionString setter
        * System.Data.SqlClient/SqlDataReader.cs:
                Implement Dispose () methods.
                Set RecordsAffected to -1 by default. Need to
                set this correctly in the future.
        * System.Data.SqlClient/SqlCommandBuilder.cs:
        * System.Data.SqlClient/SqlDataAdapter.cs:
        * System.Data.SqlClient/SqlTransaction.cs:
        * System.Data.SqlClient/SqlXmlTextReader.cs:
                Implement Dispose () methods.

svn path=/trunk/mcs/; revision=8975
2002-11-13 21:33:39 +00:00
Tim Coleman d9955231f6 2002-11-13 Tim Coleman <[email protected]>
* System.Data.SqlClient/SqlCommand.cs:
        * System.Data.SqlClient/SqlCommandBuilder.cs:
        * System.Data.SqlClient/SqlConnection.cs:
        * System.Data.SqlClient/SqlDataAdapter.cs:
        * System.Data.SqlClient/SqlDataReader.cs:
        * System.Data.SqlClient/SqlTransaction.cs:
        * System.Data.SqlClient/SqlXmlTextReader.cs:
                Implement Dispose () methods.

svn path=/trunk/mcs/; revision=8971
2002-11-13 17:32:22 +00:00
Tim Coleman ee1c3a6682 2002-11-11 Tim Coleman <[email protected]>
* System.Data/ResDescriptionAttribute.cs:
        * list
                New internal class added
        * System.Data/Constraint.cs:
        * System.Data/ConstraintCollection.cs:
        * System.Data/DBConcurrencyException.cs:
        * System.Data/DataColumn.cs:
        * System.Data/DataColumnCollection.cs:
        * System.Data/DataRelation.cs:
        * System.Data/DataRelationCollection.cs:
        * System.Data/DataRow.cs:
        * System.Data/DataRowBuilder.cs:
        * System.Data/DataRowBuilder.cs:
        * System.Data/DataRowCollection.cs:
        * System.Data/DataSet.cs:
        * System.Data/DataTable.cs:
        * System.Data/DataTableCollection.cs:
        * System.Data/DataView.cs:
        * System.Data/DataViewManager.cs:
        * System.Data/DataViewSetting.cs:
        * System.Data/DataViewSettingCollection.cs:
        * System.Data/ForeignKeyConstraint.cs:
        * System.Data/ForeignKeyConstraint.cs:
        * System.Data/InternalDataCollectionBase.cs:
        * System.Data/MergeFailedEventArgs.cs:
        * System.Data/StrongTypingException.cs:
        * System.Data/TypeDataSetGeneratorException.cs:
        * System.Data/UniqueConstraint.cs:
        * System.Data.Common/DataAdapter.cs:
        * System.Data.Common/DataColumnMapping.cs:
        * System.Data.Common/DataColumnMappingCollection.cs:
        * System.Data.Common/DataTableMapping.cs:
        * System.Data.Common/DataTableMappingCollection.cs:
        * System.Data.Common/DbDataAdapter.cs:
        * System.Data.Common/DbDataPermission.cs:
        * System.Data.Common/DbDataPermissionAttribute.cs:
        * System.Data.Common/DbEnumerator.cs:
        * System.Data.SqlClient/SqlCommand.cs:
        * System.Data.SqlClient/SqlCommandBuilder.cs:
        * System.Data.SqlClient/SqlConnection.cs:
        * System.Data.SqlClient/SqlDataAdapter.cs:
        * System.Data.SqlClient/SqlParameter.cs:
                Add missing attributes, methods, properties based on information
                from System.Data class status page on go-mono.com.

svn path=/trunk/mcs/; revision=8927
2002-11-12 01:41:04 +00:00
Tim Coleman 06104bff0c 2002-11-09 Tim Coleman <[email protected]>
* list:
                Add new internal tds classes
        * System.Data.Common/DbDataAdapter.cs:
        * System.Data.SqlClient/SqlDataAdapter.cs:
                Change event calling system
        * System.Data.SqlClient/SqlClientPermission.cs:
        * System.Data.SqlClient/SqlClientPermissionAttribute.cs:
        * System.Data.SqlClient/SqlDataReader.cs:
                Add comments
        * System.Data.SqlClient/SqlCommand.cs:
                Some changes to make consistent with .NET based on Sql server traces
                Implement command timeout
        * System.Data.SqlClient/SqlCommandBuilder.cs:
                Make sure that we only build a command if key info found
        * System.Data.SqlClient/SqlConnection.cs:
                Change event calling system
                Some changes to make consistent with .NET based on Sql server traces
                Implement connection timeout
        * System.Data.SqlClient/SqlConnectionPool.cs:
                Implement connection timeout
        * System.Data.SqlClient/SqlError.cs:
                Implement ToString ()
        * System.Data.SqlClient/SqlException.cs:
                Mucho implementation and cleanup
        * System.Data.SqlClient/SqlParameter.cs:
                Implement Clone ()
        * System.Data.SqlClient/SqlParameterCollection.cs:
                Code cleanup
        * System.Data.SqlClient/SqlTransaction.cs:
                Move some of the transaction creation to SqlConnection to be consistent
                with .NET SQL traces

svn path=/trunk/mcs/; revision=8906
2002-11-10 00:36:17 +00:00
Tim Coleman ce80d58963 2002-11-07 Tim Coleman <[email protected]>
* System.Data.Common/DbDataAdapter.cs:
                Remove NotImplementedException in Dispose
        * System.Data.Common/FieldNameLookup.cs:
                Should be sealed
        * System.Data.SqlClient/SqlCommand.cs:
                Fix CommandText accessor (stack overflow)
                Implement DeriveParameters method
        * System.Data.SqlClient/SqlCommandBuilder.cs:
                Implement this class
        * System.Data.SqlClient/SqlConnection.cs:
                Change application name to "Mono SqlClient Data Provider"
        * System.Data.SqlClient/SqlDataReader.cs:
                Add new schema information
        * System.Data.SqlClient/SqlError.cs:
        * System.Data.SqlClient/SqlErrorCollection.cs:
                Remove internal methods, TODO attributes
        * System.Data.SqlClient/SqlParameter.cs:
                Add new internal constructor for DeriveParameters use
        * System.Data.SqlClient/SqlParameterConverter.cs:
                Add missing methods based on class status

svn path=/trunk/mcs/; revision=8864
2002-11-07 06:07:01 +00:00
Tim Coleman 4490682a6e 2002-11-04 Tim Coleman ([email protected])
* SqlCommand.cs:
		Add SchemaOnly behavior

svn path=/trunk/mcs/; revision=8830
2002-11-05 06:00:59 +00:00
Tim Coleman fcf980c6cf 2002-11-04 Tim Coleman <[email protected]>
* list:
                Add Mono.Data.TdsClient.Internal.TdsInternalError
                Add Mono.Data.TdsClient.Internal.TdsInternalErrorCollection
                Add Mono.Data.TdsClient.Internal.TdsInternalErrorMessageEventHandler
                Add Mono.Data.TdsClient.Internal.TdsInternalErrorMessageEventArgs
                Add Mono.Data.TdsClient.Internal.TdsInternalInfoMessageEventHandler
                Add Mono.Data.TdsClient.Internal.TdsInternalInfoMessageEventArgs
                Remove Mono.Data.TdsClient.Internal.TdsPacketErrorResult
                Remove Mono.Data.TdsClient.Internal.TdsPacketErrorResultCollection
                Remove Mono.Data.TdsClient.Internal.TdsPacketMessageResult
        * System.Data.Common/RowUpdatedEventArgs.cs:
        * System.Data.Common/RowUpdatingEventArgs.cs:
                Implement
        * System.Data.SqlClient/SqlCommand.cs:
        * System.Data.SqlClient/SqlDataReader.cs:
        * System.Data.SqlClient/SqlTransaction.cs:
                Remove checks for errors.  These are now handled by events
        * System.Data.SqlClient/SqlConnection.cs:
        * System.Data.SqlClient/SqlError.cs:
        * System.Data.SqlClient/SqlException.cs:
        * System.Data.SqlClient/SqlInfoMessageEventArgs.cs:
                Add event handlers and triggers for errors, messages, state change
        * System.Data.SqlClient/SqlParameter.cs:
                Re-add refreshproperties
        * System.Data.SqlClient/SqlRowUpdatedEventArgs.cs:
        * System.Data.SqlClient/SqlRowUpdatedEventHandler.cs:
        * System.Data.SqlClient/SqlRowUpdatingEventArgs.cs:
        * System.Data.SqlClient/SqlRowUpdatingEventHandler.cs:
                Implement

svn path=/trunk/mcs/; revision=8825
2002-11-05 04:27:25 +00:00
Tim Coleman a424029393 2002-11-04 Tim Coleman ([email protected])
* SqlCommand.cs:
	* SqlConnection.cs:
	* SqlParameter.cs:
		Remove RefreshProperties attributes that break linux build.

svn path=/trunk/mcs/; revision=8819
2002-11-04 19:50:39 +00:00
Tim Coleman 9efe5974b7 2002-11-04 Tim Coleman <[email protected]>
* list:
                Add Mono.Data.TdsClient.Internal.TdsBigDecimal
                Add System.Data.SqlClient.SqlParameterConverter
                Add System.Data.DataSysDescriptionAttribute
        * System.Data/DataSysDescriptionAttribute.cs:
                New class added
        * System.Data.Common/DbDataPermission.cs:
                Add CreateInstance method
        * System.Data.SqlClient/SqlClientPermission.cs:
        * System.Data.SqlClient/SqlError.cs:
                Add Serializable attribute
        * System.Data.SqlClient/SqlCommand.cs:
        * System.Data.SqlClient/SqlConnection.cs:
        * System.Data.SqlClient/SqlDataAdapter.cs:
        * System.Data.SqlClient/SqlParameter.cs:
                Add some missing property attributes
        * System.Data.SqlClient/SqlCommandBuilder.cs:
                Add some missing property attributes
                Implement properties
        * System.Data.SqlClient/SqlDataReader.cs:
                Implement missing methods
        * System.Data.SqlClient/SqlErrorCollection.cs:
                Implement the properties
        * System.Data.SqlClient/SqlException.cs:
                Remove extra property accessors
        * System.Data.SqlClient/SqlInfoMessageEventArgs.cs:
                Add internal constructor
        * System.Data.SqlClient/SqlParameterCollection.cs:
                Add internal constructor
                Add property attributes
        * System.Data.SqlClient/SqlParameterConverter.cs:
                New internal class added
        * System.Data.SqlClient/SqlRowUpdatedEventArgs.cs:
        * System.Data.SqlClient/SqlRowUpdatingEventArgs.cs:
                Remove destructor
        * System.Data.SqlTypes/SqlDecimal.cs:
                Add implicit conversion from TdsBigDecimal to SqlDecimal
        * System.Data.SqlTypes/SqlString.cs:
        * System.Data.SqlTypes/SqlInt16.cs:
        * System.Data.SqlTypes/SqlDateTime.cs:
                Change code to remove compiler warnings

svn path=/trunk/mcs/; revision=8813
2002-11-04 18:23:26 +00:00
Tim Coleman 17cbe76c5e 2002-11-03 Tim Coleman ([email protected])
* System.Data.SqlClient/SqlCommand.cs:
                Use SET NO_BROWSETABLE ON when CommandBehavior is KeyInfo
        * System.Data.SqlClient/SqlDataReader.cs:
                Get more schema info if available
        * list:
                Add Mono.Data.TdsClient.Internal.TdsColumnStatus

svn path=/trunk/mcs/; revision=8791
2002-11-03 06:07:23 +00:00
Tim Coleman 0220434e8d 2002-11-02 Tim Coleman ([email protected])
* System.Data.SqlClient/SqlCommand.cs:
                Change to use sp_executesql to run regular text queries.
                Now, sp_executesql for text, sp_execute for prepared,
                and execute for SPs means everything runs a procedure.
        * System.Data.SqlClient/SqlParameter.cs:
                Allow client to set parameter name in Prepare ()
        * System.Data.SqlClient/SqlParameterCollection.cs:
                Implement some methods
        * System.Data.SqlClient/SqlDataReader.cs:
                Since everything is an SP now, we know that when
                we see DoneProc, that we are really done.

svn path=/trunk/mcs/; revision=8749
2002-11-02 07:19:13 +00:00
Tim Coleman 1dde77bced 2002-11-01 Tim Coleman ([email protected]) :
* System.Data.Common/DbEnumerator.cs :
                Throw correct exception on Reset ()
                Add ColumnSize to schema table.
        * System.Data.SqlClient/SqlDataReader.cs :
                Add ColumnSize to schema table.
        * System.Data.SqlClient/SqlCommand.cs :
                Change the way that preparing is handled.
                Now uses sp_prepare on the server instead of temp
                stored procedures because it's the Right Thing[tm] to do.
        * System.Data.SqlClient/SqlConnection.cs :
                Store data readers here rather than in command
        * System.Data.SqlClient/SqlDataReader.cs :
                More implementation, including binary types
        * System.Data.SqlClient/SqlParameter.cs :
                Lowercase type name

svn path=/trunk/mcs/; revision=8746
2002-11-02 05:06:21 +00:00
Tim Coleman 8dfb296b20 2002-10-30 Tim Coleman ([email protected])
* System.Data.Common/FieldNameLookup.cs:
        * System.Data.Common/SchemaInfo.cs:
        * System.Data.SqlClient/SqlXmlTextReader.cs:
                New classes added
        * list :
                Class list changed in build
        * System.Data.SqlClient/SqlCommand.cs:
                Added support for command behaviors
                Refactored a bunch of code
                Implement ExecuteScalar
                Implement ExecuteXmlReader
        * System.Data.SqlClient/SqlConnection.cs:
                Moved CheckForErrors here
        * System.Data.SqlClient/SqlDataAdapter.cs:
                Code reformatting
        * System.Data.SqlClient/SqlDataReader.cs:
                Implement GetEnumerator
                Fix NextResult, Read
                Add SqlDataReaderEnumerator private class
        * System.Data.SqlClient/SqlParameter.cs:
                Move some of the Prepare code from SqlCommand to here
        * System.Data.SqlClient/SqlTransaction.cs:
                Move error checking to SqlConnection

svn path=/trunk/mcs/; revision=8703
2002-10-31 06:20:08 +00:00
Tim Coleman e6b40a5d00 2002-10-29 Tim Coleman ([email protected])
* System.Data.SqlClient/SqlCommand.cs:
                Added code to handle parameters for queries
        * System.Data.SqlClient/SqlConnection.cs:
                Properly handle resetting SqlConnections
        * System.Data.SqlClient/SqlDataReader.cs:
                Properly handle the case where no results are returned
        * System.Data.SqlClient/SqlParameter.cs:
                Default direction to Input
        * System.Data.SqlClient/SqlParameterCollection.cs:
                Implement GetEnumerator

svn path=/trunk/mcs/; revision=8670
2002-10-30 04:54:11 +00:00
Tim Coleman 7c9b013590 2002-10-28 Tim Coleman ([email protected])
* System.Data.SqlClient/SqlCommand.cs:
                Add some error handling
        * System.Data.SqlClient/SqlDataReader.cs:
                Add some error handling
                Add precision/scale to schema table
        * System.Data.SqlClient/SqlException.cs:
                Generate a SqlException from TDS error
                collection
        * System.Data.SqlClient/SqlTransaction.cs:
                Add some error handling

svn path=/trunk/mcs/; revision=8644
2002-10-29 03:40:49 +00:00
Tim Coleman 73b08bddcf 2002-10-25 Tim Coleman ([email protected])
* System.Data.SqlClient/SqlConnectionPool.cs:
                New class added
        * System.Data.SqlClient/SqlClientPermission.cs:
        * System.Data.SqlClient/SqlClientPermissionAttribute.cs:
        * System.Data.SqlClient/SqlInfoMessageEventArgs.cs:
        * System.Data.SqlClient/SqlInfoMessageEventHandler.cs:
        * System.Data.SqlClient/SqlParameter.cs:
        * System.Data.SqlClient/SqlParameterCollection.cs:
                Code reformatting
        * System.Data.SqlClient/SqlCommand.cs:
        * System.Data.SqlClient/SqlConnection.cs:
        * System.Data.SqlClient/SqlException.cs:
        * System.Data.SqlClient/SqlTransaction.cs:
                New code based on work in TDS Client
        * list:
                New files added for SqlClient, and TdsClient.Internal
        * System.Data.build:
                Added reference to System.EnterpriseServices.dll
                Still leave SqlClient out of build until danmorg
                can fix.

svn path=/trunk/mcs/; revision=8552
2002-10-25 16:11:37 +00:00
Daniel Morgan 1810f3436a 2002-10-13 Daniel Morgan <[email protected]>
* System.Data/DataRow.cs: don't throw exception
	if DBNull is false.  Had to do comment this line
	to allow a typeof(Type).

	* System.Data.SqlClient/SqlCommand.cs: the "DataType"
	DataColumn and DataRows in a DataTable for a schema should
	be typeof Type,	not string.  This is to make it
	compatible with MS.NET

	* System.Data.SqlClient/SqlConnection.cs: the
	isolation level should be set before
	beginning the transaction

	* Test/SqlSharpCli.cs: change string to Type for
	"DataType" from a DataRow in a DataTable
	that contains a schema.

svn path=/trunk/mcs/; revision=8229
2002-10-14 00:19:06 +00:00
Daniel Morgan 51b401fe0f 2002-05-27 Daniel Morgan <[email protected]>
* System.Data.SqlClient/SqlCommand.cs: typo
	should be CommandBehavior.KeyInfo

	* Test/SqlSharpCli.cs: refactored and added a few more
	features.

svn path=/trunk/mcs/; revision=4961
2002-05-27 10:00:28 +00:00
Daniel Morgan d0f2df2b41 2002-05-26 Daniel Morgan <[email protected]>
* System.Data/DataRow.cs: modified
	support setting of DBNull.Value
	using the Item indexer this[DataColumn]

	* System.Data.SqlClient/SqlCommand.cs: modified
	tweaks to show TODO's for other CommandBehavior.
	Set AllowDBNull column to true for IsKey row
	in schema DataTable.

	* System.Data.SqlClient/SqlConnection.cs: modified
	if transaction is in progress when a Close() is called,
	do a transaction Rollback.

svn path=/trunk/mcs/; revision=4946
2002-05-26 11:57:30 +00:00
Daniel Morgan da59dd4d7f 2002-05-26 Daniel Morgan <[email protected]>
* Test/SqlSharpCli.cs: added file
	My new toy.  SQL# is a command-line tool to enter
	SQL	commands and queries using Mono System.Data.
	It also serves as a test for Mono System.Data.

	* System.Data.SqlClient/SqlCommand.cs: modified
	- ExecuteNonQuery(), ExecuteScalar(), and ExecuteReader()
	should handle the results from SQL Commands and Queries.
	- Internal class SqlResult should not create schema Table
	for the result from a SQL Command.  Also, set the RecordsRetrieved
	property for SqlDataReader.
	- Closing the SqlDataReader should Close() the SqlConnection for
	a CommandBehavior.CloseConnection.
	- Set defaults for SqlResult

	* System.Data.SqlClient/SqlConnection.cs: modified -
	when SqlDataReader is Close()
	should Close() the SqlConnection for
	a CommandBehavior.CloseConnection.  Changed internal Property
	from OpenReader get/set to IsReaderOpen get and created
	internal methods OpenReader()/CloseReader() for SqlCommand to call.
	SqlConnection needs to be prevented from doing while SqlDataReader
	is being used.

	* System.Data.SqlClient/SqlDataReader.cs: modified -
	call SqlCommand's OpenReader() internal method.  get
	RecordsRetrieved from SqlResult.  set/reset default
	values for SqlDataReader.

	* Test/PostgresTest.cs
	* Test/TestExecuteScalar.cs
	* Test/TestSqlDataReader.cs: modified
	for the Execute...() methods in SqlCommand
	to test SQL Queries and Commands

	* Test/System.Data_test.build: modified
	exclude new file Test/SqlSharpCli.cs from
	test build

svn path=/trunk/mcs/; revision=4944
2002-05-26 07:26:52 +00:00
Tim Coleman 31df872b2e 2002-05-23 Tim Coleman <[email protected]>
* System.Data.SqlClient/SqlCommand.cs: include
        the BaseColumnName in the schema table.  Was missed before.
        * System.Data.Common/DbDataAdapter.cs: Use DataTable
        mappings so that the DataSet and DataTable are more closely tied.
        Get schema information from the DataTable using GetSchemaTable ()
        Various other little fixes
        * System.Data.Common/DataColumnMappingCollection.cs:
        * System.Data.Common/DataTableMapping.cs:
        * System.Data.Common/DataTableMappingCollection.cs: Some
        implementation, enough to be used by DbDataAdapter.

svn path=/trunk/mcs/; revision=4891
2002-05-23 21:04:04 +00:00
Daniel Morgan e4d7494b38 2002-05-23 Daniel Morgan <[email protected]>
* System.Data.SqlClient/SqlCommand.cs: set
	the "ProviderType" to the PostgreSQL type oid

	* System.Data.SqlClient/SqlDataReader.cs: fix
	for various properties and methods that
	return meta data: Item indexers this[name] and this[index],
	GetFieldType, GetName, and GetOrdinal.  SqlDataAdapter
	should work again.

svn path=/trunk/mcs/; revision=4873
2002-05-23 00:28:02 +00:00
Daniel Morgan 133032ff33 2002-05-22 Daniel Morgan <[email protected]>
* System.Data/DataRow.cs: change suggested
	by tim: in Item indexer, do an EndEdit()

	* System.Data.SqlClient/SqlCommand.cs: more
	fixes to SqlResult.  After setting each item in
	the DataRow, do an AcceptChanges() to commit
	the changes in the DataRow.  For DataType, use a Type
	of System.String since System.Type nor System.Object
	seems to work.

	* Test/TestSqlDataReader.cs
	* Test/PostgresTest.cs: updated to to be on
	the way schema table is suppose to work

svn path=/trunk/mcs/; revision=4863
2002-05-22 17:59:12 +00:00
Daniel Morgan be51edc929 2002-05-22 Daniel Morgan <[email protected]>
* System.Data.SqlClient/SqlCommand.cs: more work on
	building the schema table

svn path=/trunk/mcs/; revision=4845
2002-05-22 02:27:20 +00:00
Tim Coleman fa28461d2b 2002-05-22 Tim Coleman <[email protected]>
* System.Data.SqlClient/SqlCommand.cs: preliminary work
        on getting the schema table correctly built.

svn path=/trunk/mcs/; revision=4844
2002-05-22 00:34:14 +00:00
Daniel Morgan 6d551e483a 2002-05-21 Daniel Morgan <[email protected]>
* System.Data.SqlClient/ParmUtil.cs: added file - to
	provide utility for conversion of input parameters

	* System.Data.SqlClient/PostgresTypes.cs: added file -
	moved the PostgreHelper class to here.  May eventually
	move the internal class PostgresTypes that's inside the
	SqlConnection to here as well.
	Handling of PostgreSQL <-> .NET types need to be though
	out more. Also, the PostgreHelper has a method to convert
	from .NET types to a string which can be put into used in
	an SQL statement to execute against a PostgreSQL database.
	This is the beginnings of parameters support.  It currently
	only supports input parameters.  Still need to do output,
	input/output, and return parameters.

	* Test/TestSqlParameters.cs: new test to test the input
	parameters in System.Data.SqlClient against a
	PostgreSQL db.

	* System.Data.SqlClient/PostgresLibrary.cs: moved
	PostgresHelper class to file PostgresTypes.cs.  Also
	moved struct PostgresType there too.

	* System.Data.SqlClient/SqlCommand.cs: added input
	parameters support

	* System.Data.SqlClient/SqlParameter.cs: got
	SqlParameter to work

	* System.Data.SqlClient/SqlParameterCollection.cs: got
	SqlParameterCollection to work

	* Test/System.Data_test.build: added files to exclude
	from test build

	* System.Data.SqlClient/SqlConnection.cs: release resources
	no longer used

svn path=/trunk/mcs/; revision=4805
2002-05-21 01:29:30 +00:00