Commit Graph
366 Commits
Author SHA1 Message Date
Umadevi S 65a6069971 Continuing on implementation for bulkcopy and notification
Added files SqlNotificationEventArgs.cs, OnChangeEventHandler.cs
                Modified SqlRowUpdatingEventArgs.cs

svn path=/trunk/mcs/; revision=44785
2005-05-20 02:41:41 +00:00
Umadevi S bf84b105c1 * For implementation of bulkcopy and notifications added files
SqlBulkCopyOptions.cs,SqlBulkCopyColumnMapping.cs,SqlNotificationAuthType.cs
                SqlNotificationTransports.cs,SqlRowsCopiedEventArgs.cs, SqlRowsCopiedEventHandler.cs                                                                                                    

svn path=/trunk/mcs/; revision=44740
2005-05-19 08:40:20 +00:00
Umadevi S a9b4965cad Corrected types,enum values of SqlNotificationType,SqlNotificationSource,
SqlNotificationInfo and added new method in SqlRowUpdatingEventArgs.cs
        (For implementation of bulkcopy/notifications)

svn path=/trunk/mcs/; revision=44738
2005-05-19 08:18:39 +00:00
Sureshkumar T 8aa5f5eafd 2005-04-19 Sureshkumar T <[email protected]>
* SqlDataReader.cs: NextResult (): Re-create schema table for each
	result set. don't re-use, as it may be referenced from somewhere.


svn path=/trunk/mcs/; revision=43240
2005-04-19 08:54:04 +00:00
Sureshkumar T f943410d72 In System.Data/System.Data.SqlClient: Implemented asynchronous command execution.
In Mono.Data.Tds: Implemented asynchronous command execution at tds driver level.

Implemented by Sureshkumar T  <[email protected]> &  Ankit Jain  <[email protected]>


svn path=/trunk/mcs/; revision=42641
2005-04-07 14:25:50 +00:00
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
Gonzalo Paniagua Javier ea1707ac6f 2005-03-11 Gonzalo Paniagua Javier <[email protected]>
* SqlConnection.cs: added a finalizer for correct implementation of the
	IDisposable pattern.


svn path=/trunk/mcs/; revision=41722
2005-03-11 21:12:45 +00:00
Gonzalo Paniagua Javier ec84c7c397 2005-03-11 Gonzalo Paniagua Javier <[email protected]>
* SqlException.cs: make it serialization-compatible with MS. Patch by
	Aleksandar Dezelin. Closes bug #73596.


svn path=/trunk/mcs/; revision=41721
2005-03-11 21:11:27 +00:00
Sureshkumar T c04cfcb57c In System.Data.ProviderBase:
2005-03-08  Sureshkumar T  <[email protected]>

	* DbParameterBase.cs: Implemented most of get set methods.
	* DbConnectionBase.cs: Commented ConnectionOptions creation,
	because it is not yet implemented.
	* DbCommandBase.cs: Implemented ExecuteScalar method.
	* DbParameterCollectionBase.cs: Implemented Add method.
	* DbDataReaderBase.cs: removed internal constructor DbDataReader
	(DbCommand).

In System.Data.SqlClient:
2005-03-08  Sureshkumar T  <[email protected]>

	* SqlDataReader.cs: Call base constructor with CommandBehavior
	parameter instead of passing DbCommand object. The internal base
	class with DbCommand Parameter is removed.


svn path=/trunk/mcs/; revision=41552
2005-03-08 08:38:20 +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 97133615a0 In System.Data.ProviderBase:
2005-03-02  Sureshkumar T  <[email protected]>

	* DbConnectionBase.cs: CreateDbCommand: assign connection to the
	created command.

In .:
2005-03-02  Sureshkumar T  <[email protected]>

	* System.Data.dll.sources: Added
	System.Data.SqlClient/SqlConnectionFactory.cs.

In System.Data.SqlClient:
2005-03-03  Sureshkumar T  <[email protected]>

	* SqlClientFactory.cs: While creating command, create using
	DbConnectionFactory as DbConnectionBase.CreateDbCommand needs to
	have a connection factory.

	* SqlConnection.cs: Added an internal constructor which takes
	DbConnectionFactory.

	* SqlConnectionFactory.cs: Added. Concrete class for abstract
	factory DbConnectionFactory.


svn path=/trunk/mcs/; revision=41382
2005-03-03 04:30:14 +00:00
Sureshkumar T 01bb726ef7 2005-02-22 Sureshkumar T <[email protected]>
* SqlDataReader.cs: GetBytes: return the length of the data if
        output buffer is null. if not, copy the values to buffer and
        return the bytes actually read.


svn path=/trunk/mcs/; revision=41026
2005-02-22 09:37:19 +00:00
Sureshkumar T 3361135cce 2005-02-02 Sureshkumar T <[email protected]>
* SqlConnection.cs: 
	- Database: return db name from database if connection open,
	otherwise take from connection string.
	- Set default values for parameters in the constructor itself.
	- Dangling else problem with Close method.
	- reset values of parms (TdsConnectionParameters) rather setting
	to null.
	- set disposed to false in Open method
	- finally call base.Dispose in Dispose (bool)

	Fixes nunit regressions SqlConnectionTest:DefaultConnectionValues
	and SqlConnectionTest:DatabaseSynonyms.	


svn path=/trunk/mcs/; revision=39974
2005-02-02 10:42:30 +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 8de1969f14 2004-10-06 Umadevi S <[email protected]>
* ISqlNoticationReceiver.cs - changed namespace
        * Added files SqlNotificationType.cs, SqlNotificationInfo.cs, SqlNotificationSource.cs

svn path=/trunk/mcs/; revision=34744
2004-10-06 04:20:14 +00:00
Umadevi S c813754f8d 2004-09-24 Umadevi S <[email protected]>
* SqlTransaction.cs - Dispose will not call rollback incase the transaction is not open.

svn path=/trunk/mcs/; revision=34339
2004-09-24 09:56:09 +00:00
Sebastien Pouliot 51ffd060a9 2004-09-14 Sebastien Pouliot <[email protected]>
* SqlClientPermission.cs: Added internal constructor accepting an Sql
	ClientPermissionAttribute parameter (using base class protected ctor).
	* SqlClientPermissionAttribute.cs: Copy now use the new SqlClient
	Permission constructor.

svn path=/trunk/mcs/; revision=33905
2004-09-14 20:02:48 +00:00
Sebastien Pouliot de76dcbb20 Fix NET_2_0 build.
svn path=/trunk/mcs/; revision=33837
2004-09-14 00:09:24 +00:00
Sebastien Pouliot c321305e8d 2004-09-13 Sebastien Pouliot <[email protected]>
* SqlClientPermission.cs: Mostly completed (needs tests).
	* SqlClientPermissionAttribute.cs: Completed.

svn path=/trunk/mcs/; revision=33832
2004-09-13 23:32:54 +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
Gert Driesen bf01809f62 SqlConnection.cs: added TODO on ConnectionString for keywords
that are not yet implemented. check value of Integrated Security
        keyword, check value of bool keywords, improve error reporting
        for int keywords, added support for the following keyword
        synonyms : APP, TIMEOUT, NETWORK, PERSISTSECURITYINFO, WSID,
        LANGUAGE, USER. Throw NotImplementedException when encrypt keyword
        is set to true, enlist keyword is set to false or attachdbfilename
        keyword (or one of its synonyms) is set. Added FIXME for PERSIST
        SECURITY INFO keyword, throwing a NotImplementedException here
        would break lots of apps

svn path=/trunk/mcs/; revision=32516
2004-08-19 06:44:05 +00:00
Gert Driesen 8ddc1dfe83 * SqlConnection.cs - spaces to tabs
svn path=/trunk/mcs/; revision=32387
2004-08-16 15:59:04 +00:00
Sureshkumar T 10ea22496f 2004-08-12 Sureshkumar T <[email protected]>
* SqlDataReader.cs - In Close method, the remaining resultsets are drained
			     out, to read output parameters & to avoid stream overlap

svn path=/trunk/mcs/; revision=32258
2004-08-12 09:44:48 +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
Atsushi Eno eb17094994 2004-06-22 Atsushi Enomoto <[email protected]>
* SqlCommandBuilder.cs : Avoid cast exception caused by DbNull.

svn path=/trunk/mcs/; revision=30322
2004-06-24 16:48:11 +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
Umadevi S 46aa685e63 2004-06-18 Umadevi S <[email protected]>
* SqlConnection.cs - handled null being passed as a connectionstring
          - checked for minimal set of parameters in connectionstring.
          - handled unrecogonized keywords similar to MS.NET

svn path=/trunk/mcs/; revision=29846
2004-06-18 04:23:08 +00:00
Umadevi S a855975ad5 2004-06-17 Umadevi S <[email protected]>
* SqlTransaction.cs - isRolledBack reset in the internal constructor

svn path=/trunk/mcs/; revision=29757
2004-06-17 10:30:55 +00:00
Umadevi S 6c50e0cd4b 2004-06-17 Umadevi S <[email protected]>
* SqlTransaction.cs - fixed  multiple rollbacks being called causes invalidoperationexception

svn path=/trunk/mcs/; revision=29755
2004-06-17 08:41:54 +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
Gert Driesen 1517677e7f * SqlClientPermission.cs: removed extra CreateInstance
method

svn path=/trunk/mcs/; revision=28820
2004-06-04 05:36:15 +00:00
Umadevi S a8e6fcdf07 * SQLDebugging.cs: added missing attributes, marked ctor
public to match MS.NET

svn path=/trunk/mcs/; revision=28690
2004-06-02 08:20:21 +00:00
Martin Baulig 94abf32795 Small fix for NET_2_0.
svn path=/trunk/mcs/; revision=28488
2004-05-30 17:17:15 +00:00
Atsushi Eno 3192ef204e 2004-05-22 Atsushi Enomoto <[email protected]>
* SqlClientPermission.cs : don't use chained obsolete .ctor.

svn path=/trunk/mcs/; revision=27902
2004-05-22 19:39:00 +00:00
Gert Driesen a72f4f118c * SqlClientPermissionAttribute.cs: change AllowMultiple and
Inherited to match .NET

svn path=/trunk/mcs/; revision=27770
2004-05-20 19:13:10 +00:00
Umadevi S e3ae8dc698 2004-05-20 Umadevi S <[email protected]>
* Fixed bug 58406- implemented the hasrow method, test program used
         to test with the bug report

svn path=/trunk/mcs/; revision=27728
2004-05-20 09:51:47 +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
Martin Baulig dfedf08d98 2004-04-22 Martin Baulig <[email protected]>
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.

svn path=/trunk/mcs/; revision=25877
2004-04-23 02:24:02 +00:00
Lluis Sanchez 87ac7fa9d1 * SqlConnection.cs: Use connection pool implemented in Mono.Data.Tds.
svn path=/trunk/mcs/; revision=25035
2004-04-05 11:41:32 +00:00
Lluis Sanchez 5cc78b769a Moved to Mono.Data.Tds
svn path=/trunk/mcs/; revision=25034
2004-04-05 10:55:27 +00:00
Lluis Sanchez ee12b47161 * SqlDataReader.cs: Null values are now represented with DBNull instances.
Deal with this.

svn path=/trunk/mcs/; revision=24902
2004-04-01 14:16:59 +00:00
Umadevi S eb77b71731 2004-03-26 Umadevi S ([email protected])
* Changed SqlClientPermission Attribute to fix a build issue using csc

svn path=/trunk/mcs/; revision=24625
2004-03-26 05:05:21 +00:00
Umadevi S 9d75ea2873 2004-03-25 Umadevi S ([email protected])
* Implemented missing methods in SqlClientPermission & SqlClientPermissionAttribute

svn path=/trunk/mcs/; revision=24579
2004-03-25 10:48:50 +00:00
Umadevi S 56f7fae27d 2004-03-16 Umadevi S ([email protected])
* SqlParameterCollection.cs
			Corrected IndexOf method to return -1 if the parametername is not
			found in the collection

svn path=/trunk/mcs/; revision=24111
2004-03-16 06:22:26 +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
Andreas N 497ec0acb8 2004-03-12 Andreas Nahr <[email protected]>
* SqlParameter.cs: DO NOT USE the consts scheme if types can be referenced directly!

svn path=/trunk/mcs/; revision=23960
2004-03-12 16:08:54 +00:00