Commit Graph
32 Commits
Author SHA1 Message Date
Gert Driesen 3aeddf81e9 * SqlBulkCopyColumnMappingCollection.cs: Changed argument names to
match MS. Code formatting.
* SqlCommand.cs: Changed argument names to match MS. Code formatting.
Do not include explicit IDbCommand implementation on 2.0 profile.
* SqlCommandBuilder.cs: Changed argument names to match MS. Code
formatting.
* SqlDataReader.cs: Changed argument names to match MS. Code
formatting.
* SqlParameterCollection.cs: Do not include IList, ICollection and
IDataParameterCollection explicit interface implementation on 2.0
profile. Code formatting.
* SqlConnection.cs: Changed argument names to match MS.
* SqlDataAdapter.cs: Changed argument names to match MS.
* SqlTransaction.cs: Do not include explicit interface implementation
of IDbTransaction.Connection on 2.0 profile. Code formatting.

svn path=/trunk/mcs/; revision=101355
2008-04-21 18:59:17 +00:00
Gert Driesen 843e73dcd2 * OdbcTransaction.cs: Clear connection in Commit and Rollback.
In IsolationLevel, throw IOE if transaction is no longer open.
* SqlTransaction.cs: Clear connection in commit. In IsolationLevel,
throw IOE if transaction is no longer open.
* OleDbTransaction.cs: Clear connection in Commit and Rollback. In
IsolationLevel and Begin overloads, throw IOE if transaction is no
longer open.

svn path=/trunk/mcs/; revision=87836
2007-10-19 17:12:55 +00:00
Gert Driesen e2681602c2 * DbTransaction.cs: Do not perform a rollback in Dispose (bool).
Leaves it up to deriving classes to override Dispose (bool) and
perform a rollback if necessary. Fixes bug #325397. Code formatting.
* ExceptionHelper.cs: Added TransactionNotUsable method that constructs
an InvalidOperationException to be thrown by IDbTransaction
implementations when the transaction is no longer open.
* OdbcTransaction.cs: Keep state of the transaction, and update it
when performing commit or rollback. In Dispose (bool), only perform
a rollback if transaction was not committed or rollback before.
In Commit and Rollback, throw an InvalidOperationException if
transaction is no longer open.
* SqlTransaction.cs: Avoid unnecessary initialization. Remove
isRolledBack since its essentially the same as isOpen. Use
ExceptionHelper.TransactionNotUsable instead of duplicating code.
On 2.0 profile, ignore call to Rollback when transaction was already
disposed.
* OleDbTransaction.cs: Keep track of whether transaction is open and
whether it's disposed. In Commit an Rollback, throw an IOE if the
transaction is no longer open. In Dispose (bool), perform a rollback
if the transaction is still open.

svn path=/trunk/mcs/; revision=87835
2007-10-19 16:04:39 +00:00
Nagappan Alagappan 741bd7514a * SqlConnection.cs: BeginTransaction does not handle
IsolationLevel.Unspecified, so the default is set as ReadCommited.
  Thanks to Jerome Haltom <[email protected]> for this patch.
  Fixes bug # 333082.
* SqlTransaction.cs: If transaction count is greater then 0 then roll
  back. Thanks to Jerome Haltom <[email protected]> for this
  patch. Fixes bug # 331953.

svn path=/trunk/mcs/; revision=87659
2007-10-17 12:32:16 +00:00
Gert Driesen 61bba85f06 * ISqlNotificationReceiver.cs: Removed.
* SqlClientFactory.cs: Use SqlDataSourceEnumerator from S.D.Sql and
marked method todo. Avoid unnessary casts. Code formatting.
* SqlCommand.cs: Explicit interface implementation of IDbCommand not
necessary on 2.0 profile. Fixes API mismatches. Avoid unnecessary
casts. Code formatting.
* SqlConnection.cs: Also use RecommendAsConfigurable instead of
SettingBindableAttribute on 2.0. Use StateChange event from base class
on 2.0. Only explicitly implement IDbConnection methods on 1.0, since
these are implemented by base class on 2.0 profile. Removed extra
explicit implementation of IDisposable since the base class implements
this. Code formatting.
* SqlDataAdapter.cs: Dispose (bool) override not necessary on 2.0
profile. Stubbed ICloneable.Clone. Fixes API mismatches.
* SqlDataReader.cs: On 2.0, IDisposable.Dispose is implemented by
DbDataReader. Only 1.0 profile, explicitly implemented IEnumerable
GetEnumerator. Code formatting.
* SqlDataSourceEnumerator.cs: Removed.
* SQLDebugging.cs: Marked sealed on 2.0. Code formatting.
* SqlNotificationAuthType.cs: Removed.
* SqlNotificationInfo.cs: Added missing fields. Code formatting.
* SqlNotificationSource.cs: Added missing fields. Code formatting.
* SqlNotificationTransports.cs: Removed.
* SqlNotificationType.cs: Added missing Unknown field. Code formatting.
* SqlParameter.cs: Removed Browsable and EditorBrowsable attributes
from Precision and Scale. Fixes API mismatches. Code formatting fixes.
* SqlTransaction.cs: On 2.0 profile, Dispose method is exposed by
base class. Fixes API mismatches. Code formatting fixes.
* System.Data.dll.sources: Removed ISqlNotificationReceiver.cs,
SqlDataSourceEnumerator.cs, SqlNotificationAuthType.cs,
SqlNotificationTransports.cs.

svn path=/trunk/mcs/; revision=81134
2007-07-01 08:46:06 +00:00
Nagappan Alagappan f0d2e2860d 2007-01-08 Nagappan A <[email protected]>
* SqlTransaction.cs (Dispose): Fixed compliation warning.

	* SqlDataReader.cs (GetValues): Length of elements to be copied was
	decided based on the argument array passed, which caused a bug, if
	the length of given array is more than actual column values.

	* SqlCommandBuilder.cs (CatalogSeparator, SchemaSeparator)
	(CatalogLocation): Implemented missing properties.
	(CreateDeleteCommand, CreateInsertCommand, CreateUpdateCommand):
	Modified private methods to take bool flag. If true, add actual
	parameter name instead of p1, p2 etc.
	(CreateParameter): Added overloaded private method to create
	parameter with the actual column name.
	(GetUpdateCommand, GetDeleteCommand, GetInsertCommand):
	Implemented missing overloaded methods.
	(SetRowUpdatingHandler): Implemented missing protected method.

	* SqlCommand.cs: Fixed compilation warning. Removed bogus
	MonoTODO's.


svn path=/trunk/mcs/; revision=70619
2007-01-08 05:54:50 +00:00
Senganal T dbcfcb27fe 2006-07-13 Senganal T <[email protected]>
* Test/System.Data.Common/DBDataPermissionTest.cs : Removed invalid tests

	* System.Data.Common/SchemaInfo.cs DbDataAdapter.cs DbConnectionOptions.cs DbParameter.cs 
	DbMetaDataColumnNames.cs DbTransaction.cs DataTableMapping.cs DataAdapter.cs 
	FieldNameLookup.cs DbDataRecord.cs DataColumnMappingCollection.cs DbCommand.cs 
	DbDataPermission.cs DbProviderFactory.cs DbCommandBuilder.cs DbConnectionString.cs 
	RowUpdatedEventArgs.cs DbDataReader.cs DbConnectionStringBuilder.cs DbConnection.cs 
	DataTableMappingCollection.cs :
		2.0 Api fixes

	* System.Data.SqlClient/SqlClientFactory.cs SqlCommand.cs SqlConnectionFactory.cs 
	SqlClientPermission.cs SqlParameterCollection.cs SqlDataReader.cs 
	SqlConnection.cs SqlParameter.cs SqlTransaction.cs :
		2.0 Api fixes

	* System.Data.Odbc/OdbcTransaction.cs OdbcCommand.cs OdbcConnectionFactory.cs 
	OdbcPermission.cs OdbcDataReader.cs OdbcParameterCollection.cs 
	OdbcConnection.cs OdbcFactory.cs OdbcParameter.cs :
		2.0 Api fixes

	* System.Data.OleDb/OleDbCommand : 2.0 Api fixes

	* System.Data.dll.sources: 
		- Added to build :
			System.Data.Common/DbMetaDataColumnNames.cs
		- Removed from build :
			System.Data.Common/DbCommandOptionalFeatures.cs
			System.Data.Common/DbCommandSet.cs
			System.Data.Common/DbProviderSupportedClasses.cs
			System.Data.Common/SchemaLocation.cs
			System.Data.Odbc/OdbcConnectionFactory.cs
			System.Data.SqlClient/SqlConnectionFactory.cs
			System.Data.ProviderBase/DbCommandBase.cs
			System.Data.ProviderBase/DbConnectionBase.cs
			System.Data.ProviderBase/DbConnectionFactory.cs
			System.Data.ProviderBase/DbConnectionInternal.cs
			System.Data.ProviderBase/DbConnectionPoolCounters.cs
			System.Data.ProviderBase/DbConnectionPoolOptions.cs
			System.Data.ProviderBase/DbDataReaderBase.cs
			System.Data.ProviderBase/DbMetaDataFactory.cs
			System.Data.ProviderBase/DbParameterBase.cs
			System.Data.ProviderBase/DbParameterCollectionBase.cs
			System.Data.ProviderBase/DbReferenceCollection.cs

	* Makefile : Add System.Transactions library reference to net_2_0 PROFILE


svn path=/trunk/mcs/; revision=62561
2006-07-13 14:19:17 +00:00
Senganal T ec248e159f 2005-11-21 Senganal T <[email protected]>
* System/System.Net/Dns.cs : added GetHostEntry() method for 2.0 api conformance
	* System.Data/System.Data.ProviderBase/DbParameterCollectionBase.cs 
		- Marked CheckName method as virtual
	* System.Data/System.Data.ProviderBase/DbParameterBase.cs
		- Marked Offset property and CopyTo method as virtual
	* System.Data/System.Data.Common/DbMetaDataCollectionNames.cs (new file)
		- Added DbMetaDataCollectionNames Enumeration 
	* System.Data/System.Data.dll.sources: 
		- Added System.Data/ConflictOption.cs : Source file for ConflictOption
			enumeration.
	* System.Data/System.Data/ConflictOption.cs (new file)
		- Added ConflictOption Enumeration 
	* System.Data/System.Data/DataTableReader.cs
	* System.Data/System.Data/IDataRecord2.cs 
		- GetProviderSpecificFieldType : Corrected the method name
	* System.Data/System.Data.Common/DbDataAdapter.cs
	* System.Data/System.Data.Common/DbParameter.cs
	* System.Data/System.Data.Common/DbTransaction.cs
	* System.Data/System.Data.Common/DbTable.cs
	* System.Data/System.Data.Common/DbProviderFactories.cs
	* System.Data/System.Data.Common/DbException.cs
	* System.Data/System.Data.Common/DbProviderFactory.cs
	* System.Data/System.Data.Common/DbCommandBuilder.cs
	* System.Data/System.Data.Common/DbDataReader.cs
	* System.Data/System.Data.Common/DbParameterCollection.cs
	* System.Data/System.Data.SqlClient/SqlClientFactory.cs
	* System.Data/System.Data.SqlClient/SqlCommandBuilder.cs
	* System.Data/System.Data.SqlClient/SqlParameterCollection.cs
	* System.Data/System.Data.SqlClient/SqlDataReader.cs
	* System.Data/System.Data.SqlClient/SqlDataAdapter.cs
	* System.Data/System.Data.SqlClient/SqlParameter.cs
	* System.Data/System.Data.SqlClient/SqlTransaction.cs
	* System.Data/System.Data.Odbc/OdbcTransaction.cs
	* System.Data/System.Data.Odbc/OdbcCommandBuilder.cs
	* System.Data/System.Data.Odbc/OdbcParameterCollection.cs
	* System.Data/System.Data.Odbc/OdbcDataReader.cs
	* System.Data/System.Data.Odbc/OdbcFactory.cs
	* System.Data/System.Data.Odbc/OdbcDataAdapter.cs
	* System.Data/System.Data.Odbc/OdbcParameter.cs

	Added stubs and other changes for ADO.NET 2.0 compatibility
	

svn path=/trunk/mcs/; revision=53301
2005-11-21 13:08:48 +00:00
Senganal T 57f5f5502c * SqlTransaction.cs : Modifed the Rollback() method, so that
connection can be used for another transaction after the previous
	transaction is rolled back. fixes bug 75904


svn path=/trunk/mcs/; revision=50364
2005-09-21 10:39:52 +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 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
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
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 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 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 3f9d2e0d6f 2002-11-08 Tim Coleman <[email protected]>
* System.Data/DataRow.cs:
        * System.Data/DataTable.cs:
                Some fix-ups related to the DbDataAdapter to make it work.
        * System.Data.Common/DbDataAdapter.cs:
                Fix the Fill () and Update () methods.  These now work
                fairly well.  Need mucho testing.
        * System.Data.SqlClient/SqlCommandBuilder.cs:
                Support table mappings and parameter source versions now.
        * System.Data.SqlClient/SqlConnection.cs:
        * System.Data.SqlClient/SqlTransaction.cs:
                Add set accessor for transaction so that SqlTransaction.Commit ()
                will remove itself from the connection.
        * System.Data.SqlClient/SqlDataAdapter.cs:
                Update/Insert/Delete command should be null by default.
        * System.Data.SqlClient/SqlException.cs:
                Remove a TODO attribute
        * System.Data.SqlClient/SqlRowUpdatingEventArgs.cs:
                Properly handle the SqlCommand object

svn path=/trunk/mcs/; revision=8889
2002-11-08 19:13:08 +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 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 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 cf9e881c47 2002-04-23 Daniel Morgan <[email protected]>
* System.Data.SqlTypes/SqlBoolean.cs
* System.Data.SqlTypes/SqlCompareOptions.cs
* System.Data.SqlTypes/SqlInt32.cs
* System.Data.SqlTypes/SqlString.cs: added - new stubs

* System.Data/DataTable.cs
* System.Data.SqlClient/SqlCommand.cs
* System.Data.SqlClient/SqlConnection.cs
* System.Data.SqlClient/SqlError.cs
* System.Data.SqlClient/SqlTransaction.cs: modified -
misc. tweaks

* System.Data.SqlClient/SqlException.cs: modified -
missing Message on indexer for Message property

svn path=/trunk/mcs/; revision=3978
2002-04-23 01:34:29 +00:00
Daniel Morgan a9c683d500 2002-04-20 Daniel Morgan <[email protected]>
* System.Data.OleDb: added directory - for OleDb database
provider classes

* System.Data.SqlClient/SqlClientPermission.cs
* System.Data.SqlClient/SqlClientPermissionAttribute.cs
* System.Data.SqlClient/SqlCommandBuilder.cs
* System.Data.SqlClient/SqlInfoMessageEventHandler.cs
* System.Data.SqlClient/SqlRowUpdatedEventArgs.cs
* System.Data.SqlClient/SqlRowUpdatedEventHandler.cs
* System.Data.SqlClient/SqlRowUpdatingEventArgs.cs
* System.Data.SqlClient/SqlRowUpdatingEventHandler.cs
* Test/TestSqlException.cs
* Test/TestSqlIsolationLevel.cs: added - more tests

* System.Data.build: modified - added new files - excludes these too

* System.Data.SqlClient/PostgresLibrary.cs - modified - comment

* System.Data.SqlClient/SqlConnection.cs
* System.Data.SqlClient/SqlCommand.cs
* System.Data.SqlClient/SqlTransaction.cs
* System.Data.SqlClient/SqlException.cs
* System.Data.SqlClient/SqlErrorCollection.cs
* System.Data.SqlClient/SqlError.cs: modified - transaction and
  exception/error handling. SqlConnection(connectionString)
  constructor should not automatically connect.

* System.Data.SqlClient/SqlDataReader.cs
* System.Data.SqlClient/SqlDataAdapter.cs
* System.Data.SqlClient/SqlParameter.cs
* System.Data.SqlClient/SqlParameterCollection.cs: modified -
added using System.ComponentModel;

* Test/TestSqlInsert.cs: modified - to use transaction

svn path=/trunk/mcs/; revision=3933
2002-04-20 20:58:45 +00:00
Daniel Morgan 890650fbb5 2002-04-17 Daniel Morgan <[email protected]>
* Test/TestSqlInsert.cs: modified - do
	  a SQL DELETE before SQL INSERT of row so you can use this
	  test over and over.

	* System.Data.SqlClient/SqlTransaction.cs: modified - default
	  IsolationLevel for PostgreSQL is ReadCommitted.  However,
	  PostgreSQL allows Serializable as well.
      (Thanks to Gonzalo for that!)

	* System.Data.SqlClient/SqlConnection.cs: modified
	* System.Data.SqlClient/SqlCommand.cs: modified
	* System.Data.SqlClient/SqlTransaction.cs: modified - got transactions
	  working; however, we still need to implement SQL errors
	  and exceptions to properly handle transactions.  Also, added
	  status and error message support from the PostgreSQL database.
	  Currently, this does a Console.WriteLine() to display the
	  status and error messages, but this is a TODO
	  for SQL errors and exceptions.

	* System.Data/TODOAttribute.cs: added - needed MonoTODO
      attribute for System.Data.dll assembly

	* System.Data/IDbCommand.cs: modified - commented
	  overloaded method ExecuteReader
	  so System.Data.SqlClient.SqlCommand can compile

	* System.Data/IDbCommand.cs: modified
	* System.Data/IDbConnection.cs: modified - added using System;
	* System.Data/IDataParameter.cs

	* System.Data.build: modified - build classes
	  in System.Data.SqlClient and exclude others in System.Data

	* System.Data.SqlClient/PostgresLibrary.cs: modified - change
	  parameter data type from IntPtr to enum ExecStatusType

	* ChangeLog: modified - corrected previous entries in log

svn path=/trunk/mcs/; revision=3874
2002-04-17 10:57:14 +00:00
Daniel Morgan c1446e2b8d 2002-04-16 Daniel Morgan <[email protected]>
svn path=/trunk/mcs/; revision=3860
2002-04-16 13:02:57 +00:00
Rodrigo Moya 6e7bbf106d 2002-04-14 Rodrigo Moya <[email protected]>
* System.Data.SqlTypes/SqlBinary.cs:
	* System.Data.SqlTypes/INullable.cs: new skeletons.

svn path=/trunk/mcs/; revision=3809
2002-04-14 18:06:00 +00:00
Rodrigo Moya 011da1207d 2002-04-14 Daniel Morgan <[email protected]>
* System.Data.SqlClient/PostgresLibrary.cs: new internal class, which
	contains all calls the the PostgreSQL client library, to be used
	everywhere in System.Data.SqlClient.

svn path=/trunk/mcs/; revision=3804
2002-04-14 12:12:45 +00:00
Rodrigo Moya d11d2324e5 2002-03-28 Rodrigo Moya <[email protected]>
* System.Data.Common/DataTableMappingCollection.cs:
	* System.Data.Common/DbDataAdapter.cs:
	* System.Data.Common/DbDataPermission.cs:
	* System.Data.Common/DataTableMapping.cs: new skeletons.

	* System.Data.SqlClient/SqlDataAdapter.cs:
	* System.Data.SqlClient/SqlDataReader.cs:
	* System.Data.SqlClient/SqlErrors.cs:
	* System.Data.SqlClient/SqlError.cs:
	* System.Data.SqlClient/SqlException.cs:
	* System.Data.SqlClient/SqlParameter.cs:
	* System.Data.SqlClient/SqlParameterCollection.cs:
	* System.Data.SqlClient/SqlTransaction.cs:
	* System.Data.SqlClient/SqlCommand.cs: fixed skeletons.

svn path=/trunk/mcs/; revision=3461
2002-03-28 19:55:41 +00:00
Rodrigo Moya 71a5a1158b 2002-03-27 Rodrigo Moya <[email protected]>
* System.Data.SqlClient/SqlTransaction.cs: started implementation.

	* System.Data.SqlClient/SqlConnection.cs (BeginTransaction):
	implemented (2 methods).

svn path=/trunk/mcs/; revision=3397
2002-03-27 14:51:07 +00:00
Rodrigo Moya 9e54799ed6 2002-03-24 Rodrigo Moya <[email protected]>
* System.Data.SqlClient/*: added skeletons for the SQL managed
	provider for ADO.Net, to be based initially in PostgreSQL.

svn path=/trunk/mcs/; revision=3300
2002-03-24 13:39:41 +00:00