Commit Graph
32 Commits
Author SHA1 Message Date
Miguel de Icaza 8d3b80d4fb [net_1_0] Finally all of NET_1_0 is gone from the source files 2012-06-01 16:50:55 -04:00
Marek Safar 02e9af391d Warnings cleanup
svn path=/trunk/mcs/; revision=111855
2008-08-28 19:08:55 +00:00
Gert Driesen 0785be89cc * OleDbDataAdapter.cs: Changed argument names to match MS. Removed
extra explicit interface implementation.
* OleDbParameter.cs: Changed argument names to match MS.
* OleDbTransaction.cs: Do not include IDbConnection.Connection and
IDisposable.Dispose for 2.0 profile.
* OleDbParameterCollection.cs: Changed argument names to match MS.
Do not include explicit interface implementations on 2.0 profile.
* OleDbConnection.cs: Changed argument names to match MS. Code
formatting.

svn path=/trunk/mcs/; revision=101354
2008-04-21 18:47:10 +00:00
Gert Driesen 3930b4b9cf * System.Data_test.dll.sources: Added DbDataAdapterTest.cs,
OdbcCommandTest.cs, OdbcConnectionTest.cs, OdbcDataAdapterTest.cs, 
OleDbCommandTest.cs, OleDbConnectionTest.cs, OleDbDataAdapterTest.cs, 
SqlDataAdapterTest.cs.
* DbDataAdapter.cs: Implemented UpdateBatchSize setter.
* DataAdapter.cs: In FillLoadOption setter, ensure value is valid.
Modified MissingMappingAction and MissingSchemaAction setters to use
ExceptionHelper.CheckEnumValue to validate value. Spaces to tabs and
code formatting.
* ExceptionHelper.cs: Added CheckEnumValue method and modified
InvalidEnumValueException method to return AORE on 2.0 profile. Added
ConnectionClosed method that returns an InvalidOperationException.
* OleDbDataAdapter.cs: In default ctor, set SelectCommand to null.
Only initialize SelectCommand in ctors. Use direct assignment in
IDbDataAdapter implementation.
* OleDbCommand.cs: Added constant for default CommandTimeout, instead
of using a magic number. Avoid unnecessary initialization. Fixed
default value for DesignTimeVisible. Return zero-length string if
CommandText is null. Added implementation for UpdatedRowSource.
* OleDbConnection.cs: Moved initialization of gda to Open ().
Avoid unnecessary initialization. Return zero-length string if
ConnectionString is null. If getters to Database, DataSource and
Provider return zero-length string if the connection is closed.
In ServerVersion, BeginTransaction and GetSchema, throw an
InvalidOperationException if connection is closed.
* OdbcCommand.cs: Added constant for default CommandTimeout, instead
of using a magic number. Avoid unnecessary initialization. Fixed
default value for DesignTimeVisible. Return zero-length string if
CommandText is null. Spaces to tabs and code formatting.
* OdbcError.cs: Fixed typo in exception message.
* OdbcConnection.cs: Return zero-length string if ConnectionString is
null. In getters for Database, DataSource and Driver return a
zero-length string if connection is closed. In BeginTransaction and
GetSchema throw InvalidOperationException if connection is closed.
Added override for GetSchema (string, string []). Use string.Empty
instead of "".
* OdbcDataAdapter.cs: Avoid unnecessary initializations. Use direct
assignment in IDbDataAdapter implementation. In default ctor, set
SelectCommand to null.
* SqlCommand.cs: Added constant for default CommandTimeout, instead
of using a magic number. Avoid unnecessary initialization. Fixed
default value for DesignTimeVisible. Return zero-length string if
CommandText is null. Use ExceptionHelper.InvalidEnumValueException
to avoid code duplication. Spaces to tabs and code formatting.
* SqlConnection.cs: Use different default package size on 2.0 profile.
Added constants for default values, instead of using magic numbers.
Avoid unnecessary initialization. In PacketSize, return default or
configured packet size when connection is not open. Use 
ExceptionHelper.ConnectionClosed instead of local method. Removed   
use of some hardcoded values in SetDefaultConnectionParameters, and
use Environment.MachineName as default WorkstationId instead of 
DNS host name. Code formatting.
* SqlDataAdapter.cs: In default ctor, set SelectCommand to null.
Avoid unnecessary initializations. Use direct assignment in   
IDbDataAdapter implementation. Fixed exception message for negative
UpdateBatchSize. In Dispose override, make sure to invoke base
method.
* DbDataAdapterTest.cs: Added test for UpdateBatchSize.
* DataAdapterTest.cs: Added tests for AcceptChangesDuringFile,   
AcceptChangesDuringUpdate, ContinueUpdateOnError, FillLoadOption,
MissingMappingAction, MissingSchemaAction and                      
ReturnProviderSpecificTypes.
* OdbcDataAdapterTest.cs: Added tests for ctors, DeleteCommand,
InsertCommand, SelectCommand, UpdateCommand and Dispose.
* OdbcDataReaderTest.cs: fixed line endings.
* OdbcCommandTest.cs: Added tests for ctors and CommantText.
* OdbcConnectionTest.cs: Removed original test that relied on MySQL.
Added ctor tests. Added tests for BeginTransaction, GetSchema and 
ServerVersion with connection that is closed.
* OleDbDataAdapterTest.cs: Added tests for ctors, DeleteCommand, 
InsertCommand, SelectCommand, UpdateCommand and Dispose.
* OleDbCommandTest.cs: Added tests for ctors and CommandText.
* OleDbConnectionTest.cs: Added tests for ctors and ConnectionString. 
Added tests for BeginTransaction, GetSchema and ServerVersion with connection that is closed.
* SqlCommandTest.cs: Added tests for ctors and CommantText. 
* SqlConnectionTest.cs: Added tests for ctors, ConnectionString and 
ServerVersion.
* SqlDataAdapterTest.cs: Added tests for ctors, DeleteCommand,
InsertCommand, SelectCommand, UpdateCommand, UpdateBatchSize and 
Dispose.

svn path=/trunk/mcs/; revision=87859
2007-10-20 23:16:52 +00:00
Nagappan Alagappan 4bf646663d 2007-09-25 Nagappan A <[email protected]>
* OleDbConnection.cs: 2.0 attribute changes.

	* OleDbException.cs: 2.0 attribute changes.

	* OleDbDataReader.cs: 2.0 attribute changes.

	* OleDbCommandBuilder.cs: 2.0 attribute changes.

	* OleDbParameter.cs: 2.0 attribute changes.


svn path=/trunk/mcs/; revision=86298
2007-09-25 06:40:29 +00:00
Nagappan Alagappan 9bb7daaf32 2007-07-22 Nagappan A <[email protected]>
* OleDbDataReader.cs: Fixed compilation warning.

	* OleDbParameterCollection.cs: Fixed compilation warning.

	* OleDbTransaction.cs: Fixed compilation warning.

	* OleDbCommandBuilder.cs: Fixed compilation warning.


svn path=/trunk/mcs/; revision=82425
2007-07-22 06:51:25 +00:00
Gert Driesen 20957f7f87 * OleDbConnection.cs: Derive from DbConnection on 2.0 profile, and
stubbed out where necessary. Fixed attributes for ConnectionString on
2.0 profile. Marked several members as override on 2.0 profile.
Do not hide StateChange event. Code formatting.
* OleDbCommandBuilder.cs: On 2.0, derive from DbCommandBuilder. Do not
include QuotePrefix and QuoteSuffix on 2.0. Stubbed out 2.0 members.
* OleDbDataAdapter.cs: On 2.0, derive from DbDataAdapter. Stubbed out
2.0 members. Do not not override Dispose on 2.0. Code formatting.
* OleDbDataReader.cs: Derive from DbDataReader on 2.0 profile. Marked
several members as override. Stubbed VisibleFieldCount. Added
EditorBrowsable attribute on GetData. Added GetDbDataReader on 2.0.
On 2.0, override GetEnumerator instead of explicit interface
implementation.
* OleDbErrorCollection.cs: Added 2.0 CopyTo overload.
* OleDbInfoMessageEventHandler.cs: Do not mark class serializable on
2.0 profile. Fixed API mismatch.
* OleDbParameter.cs: On 2.0, derive from DbParameter. Added new 2.0
ctor.  Override properties from base class and added
SourceColumnNullMapping property on 2.0. Implemented ResetDbType and
ResetOleDbType methods on 2.0.
* OleDbParameterCollection.cs: Derive from DbParameterCollection on
2.0 profile. Marked several members as override. Implemented AddRange,
CopyTo, IndexOf, Insert, Remove and RemoveAt methods introduced in
2.0 profile. Stubbed out GetParameter and SetParameter overloads.
* OleDbPermission.cs: Added missing BrowsableAttribute on Provider.
Code formatting.
* OleDbPermissionAttribute.cs: Added BrowsableAttribute on Provdider
(2.0 only).
* OleDbRowUpdatedEventHandler.cs:  Do not mark class serializable on
2.0 profile.
* OleDbRowUpdatingEventArgs.cs: Removed unused command field. Added
BaseCommand property on 2.0
* OleDbRowUpdatingEventHandler.cs: Do not mark class serializable on
2.0 profile. Fixed API mismatch.
* OleDbTransaction.cs: On 2.0, derive from DbTransaction. Added
DbConnection property and override Dispose (both 2.0 only). On 2.0,
Override Commit and Rollback. Code formatting.

svn path=/trunk/mcs/; revision=81189
2007-07-02 16:18:48 +00:00
Nagappan Alagappan b8930a7f3d 2007-06-21 Nagappan A <[email protected]>
* OleDbConnection.cs: Fixed compiler warning.

	* OleDbParameterCollection.cs (AddWithValue): Fixed compiler
	warning.


svn path=/trunk/mcs/; revision=80453
2007-06-21 12:44:40 +00:00
Chris Toshok c21950a927 In System.Data.OleDb:
* OleDbDataAdapter.cs, OleDbCommand.cs, OleDbParameter.cs,
	OleDbCommandBuilder.cs, OleDbConnection.cs: remove
	DataSysDescriptions for >= 2.0.

2006-02-17  Chris Toshok  <[email protected]>

In System.Data.SqlClient:
	* SqlCommand.cs, SqlCommandBuilder.cs, SqlConnection.cs,
	SqlDataAdapter.cs: remove DataSysDescription attributes for >= 2.0

2006-02-17  Chris Toshok  <[email protected]>

In System.Data:
	* System.Data/DataSet.cs, System.Data/DataView.cs,
	System.Data/ForeignKeyConstraint.cs,
	System.Data/DataViewManager.cs, System.Data/DataRow.cs,
	System.Data/DataSysDescriptionAttribute.cs,
	System.Data/UniqueConstraint.cs, System.Data/DataTable.cs,
	System.Data/DataRelation.cs: lots of attribute work, removing
	DataSysDescription atributes (and marking the class obsolete) for
	2.0.

2006-02-17  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=57018
2006-02-17 20:34:22 +00:00
Alexandre Gomes 38335ef649 2005-09-20 Alexandre Miguel Pedro Gomes <[email protected]>
* OleDbConnection.cs: Verify and throw an exception if the
        connection isn't valid.

svn path=/trunk/mcs/; revision=50286
2005-09-20 10:11:31 +00:00
Gert Driesen e496700e86 * OleDbDataAdapter.cs: Fixed custom attributes to match MS.NET.
* OleDbCommand.cs: Fixed custom attributes to match MS.NET.
* OleDbParameter.cs: Fixed custom attribute to match MS.NET.
* OleDbException.cs: Added ErrorTypeConverter, assigned to ErrorCode
property to match MS.NET.
* OleDbConnection.cs: Fixed custom attributes to match MS.NET.

svn path=/trunk/mcs/; revision=48142
2005-08-08 17:33:12 +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 09f0d5500b * OleDbParameter.cs: added missing attributes
* OleDbPermission.cs: added missing attributes
       * OleDbConnection.cs: added missing attributes
       * OleDbDataAdapter.cs: added missing attributes

svn path=/trunk/mcs/; revision=28687
2004-06-02 06:13:15 +00:00
Umadevi S fada37ea87 2004-05-14 Umadevi S ([email protected])
* OleDbConnection.cs - Completed implementing all the attributes
                           - Stubbed EnlistDistributedTransaction method

svn path=/trunk/mcs/; revision=27342
2004-05-14 06:30:19 +00:00
Rodrigo Moya 6f5a39d6d8 2003-02-09 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbConnection.cs:
	* System.Data.OleDb/libgda.cs: upgraded to libgda 0.10.

svn path=/trunk/mcs/; revision=11402
2003-02-09 19:15:42 +00:00
Rodrigo Moya 5ae39b1746 2002-10-27 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbDataAdapter.cs (Fill, FillSchema,
	GetFillParameters, Update): added overloaded methods.

	* System.Data.OleDb/OleDbCommand.cs:
	* System.Data.OleDb/OleDbDataReader.cs:
	* System.Data.OleDb/OleDbConnection.cs: removed limitation of one
	data adapter at a time. Mono's version can open as many as you want,
	for free.

svn path=/trunk/mcs/; revision=8616
2002-10-28 10:59:37 +00:00
Rodrigo Moya 5d1f26a554 2002-10-01 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbConnection.cs (Open): commented code from
	last commit, which wasn't supposed to be in CVS yet.

svn path=/trunk/mcs/; revision=7924
2002-10-01 23:14:53 +00:00
Rodrigo Moya a9c99094e5 2002-09-28 Vladimir Vukicevic� <[email protected]>
* System.Data.OleDb/OleDbConnection.cs: Close
	reader properly in call to ExecuteScalar().

svn path=/trunk/mcs/; revision=7918
2002-10-01 22:09:43 +00:00
Rodrigo Moya 791abbc22e 2002-08-20 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbConnection.cs (DataReader): new internal
	property.
	(Close): set the dataReader to null.

	* System.Data.OleDb/OleDbDataReader.cs (OleDbDataReader): set the
	connection's DataReader property to this object.
	(Close): set it to null here.
	(Depth, IsDbNull): implemented.
	(this): implemented the Item property with a string indexer.

	* System.Data.OleDb/OleDbCommand.cs (ExecuteNonQuery, ExecuteReader,
	ExecuteScalar): do nothing if there's already an open data reader.

	* System.Data.OleDb/libgda.cs: more API functions.

	* System.Data.OleDb/TestOleDb.cs (TestDataReader): close the data
	reader before continuing.

svn path=/trunk/mcs/; revision=6847
2002-08-21 10:09:22 +00:00
Rodrigo Moya ab46838857 2002-08-18 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbConnection.cs (ChangeDatabase): implemented.

	* System.Data.OleDb/OleDbException.cs (OleDbException): added internal
	constructor.
	(ErrorCode, Message, Source, Errors): implemented.

	* System.Data.OleDb/OleDbError.cs: implemented the full class.

	* System.Data.OleDb/libgda.cs: added more libgda functions.

	* System.Data.OleDb/TestOleDb.cs (TestOleDb): display properties for
	the opened connection.

svn path=/trunk/mcs/; revision=6725
2002-08-18 18:35:06 +00:00
Rodrigo Moya e35eb40d4e 2002-08-18 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbConnection.cs (ServerVersion): implemented.

svn path=/trunk/mcs/; revision=6724
2002-08-18 17:57:04 +00:00
Rodrigo Moya 58da214495 2002-08-15 Rodrigo Moya <[email protected]>
* System.Data/UniqueConstraint.cs (UniqueConstraint): commented
	unreachable code to avoid compiler warning.

	* System.Data.OleDb/libgda.cs (GdaList): added new internal class.

	* System.Data.OleDb/OleDbConnection.cs (DataSource): implemented.
	(OpenReader): removed internal method.

	* System.Data.OleDb/OleDbCommand.cs (ExecuteReader): split correctly
	the list of returned data models.

svn path=/trunk/mcs/; revision=6659
2002-08-16 01:19:29 +00:00
Gonzalo Paniagua Javier e7f4a77902 2002-08-06 Gonzalo Paniagua Javier <[email protected]>
* OleDbConnection.cs: little fixes to make it work and don't show
	a warning in Open.

	* TestOleDb.cs: added Close.

svn path=/trunk/mcs/; revision=6453
2002-08-06 01:34:59 +00:00
Rodrigo Moya 4e816d153a 2002-08-05 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbConnection.cs (ConnectionString,
	ConnectionTimeout, ServerVersion, GdaConnection):
	corrected style.
	(OleDbConnection): call libgda.gda_init on constructor.

	* System.Data.OleDb/libgda.cs (libgda): removed static constructor,
	which wasn't been called.

	* System.Data.OleDb/TestOleDb.cs (TestOleDb): updated to really
	make some tests.

svn path=/trunk/mcs/; revision=6450
2002-08-06 00:08:13 +00:00
Rodrigo Moya 709cc26e5a 2002-07-27 Rodrigo Moya <[email protected]>
* OleDbConnection.cs (CreateCommand):
	(BeginTransaction): implemented IDbConnection methods.

svn path=/trunk/mcs/; revision=6230
2002-07-28 22:55:32 +00:00
Tim Coleman 1150f04cdd 2002-07-10 Tim Coleman <[email protected]>
* OleDbCommandBuilder.cs: Added new methods, properties
        * OleDbConnection.cs: Modified constructor
        * OleDbError.cs: Added stubbs
        * OleDbException.cs: Added stubbs
        * OleDbInfoMessageEventArgs.cs: Added stubbs
        * OleDbInfoMessageEventHandler.cs: style change
        * OleDbParameter.cs: Added conversion from type to OleDbType
        * OleDbPermission.cs: Added stubbs
        * OleDbSchemaGuid.cs: Added stubbs
        * OleDbTransaction.cs: New constructors, changes to methods to
                support transaction nesting
        * libgda.cs: Added my name to this file

svn path=/trunk/mcs/; revision=5679
2002-07-10 05:24:00 +00:00
Tim Coleman c95e199818 2002-07-09 Tim Coleman <[email protected]>
* OleDbCommand.cs: Style changes, added new methods
       * OleDbConnection.cs: Style changes, added new methods
       * OleDbDataAdapter.cs: Implementation
       * OleDbDataReader.cs: Added stubbs
       * OleDbErrorCollection.cs: Added stubbs, some implementation
       * OleDbParameter.cs: Style changes, added new methods
       * OleDbParameterCollection.cs: Style changes, added new methods
       * OleDbPermissionAttribute.cs: Style changes, added new methods
       * OleDbRowUpdatedEventArgs.cs: Added stubbs
       * OleDbRowUpdatingEventArgs.cs: Added stubbs
       * OleDbTransaction.cs: Style changes, added new methods
       * OleDbType.cs: Fixed two typos
       * libgda.cs: Style changes, added new methods

svn path=/trunk/mcs/; revision=5668
2002-07-09 13:47:54 +00:00
Rodrigo Moya 1f103f507d 2002-06-02 Rodrigo Moya <[email protected]>
* OleDbTransaction.cs (Connection, IsolationLevel, Begin,
	Commit, Rollback): implemented.
	(GdaConnection): added new internal property.

	* OleDbParameter.cs:
	* OleDbParameterCollection.cs: implemented some methods and
	properties.

	* libgda.cs: added yet more libgda API functions.

svn path=/trunk/mcs/; revision=5090
2002-06-02 13:47:04 +00:00
Rodrigo Moya 63f8641786 2002-06-01 Rodrigo Moya <[email protected]>
* libgda.cs: added new libgda API functions.

	* OleDbConnection.cs (Provider): implemented.
	(BeginTransaction): made it overload IDbConnection methods.
	(ChangeDatabase): new stub, needs some work on libgda for being
	implemented.
	(Clone): new stub.
	(Close): implemented.
	(CreateCommand): implemented.
	(GetOleDbSchemaTable): new stub, until I understand what to do here.
	(Open): implemented basic stuff, which is just supporting connection
	strings that represent a GDA data source name. More to come.
	(InfoMessage, StateChange): added events.

	* TestOleDb.cs: test program for System.Data.OleDb.

svn path=/trunk/mcs/; revision=5081
2002-06-01 21:32:56 +00:00
Rodrigo Moya cca4ebf9d3 2002-05-29 Rodrigo Moya <[email protected]>
* libgda.cs: added static constructor.
	(GdaClient): new static property to get the underlying GdaClient
	object.

	* OleDbConnection.cs: removed GDA initialization, which belongs to
	the static 'libgda' class.

svn path=/trunk/mcs/; revision=5011
2002-05-29 18:48:37 +00:00
Rodrigo Moya e5e0b1250c 2002-05-29 Rodrigo Moya <[email protected]>
* libgda.cs: static class for libgda API calls.

	* OleDbConnection.cs: implemented constructors.
	(ConnectionString, Connectiontimeout, Database, State):
	implemented class properties.
	(BeginTransaction): implemented.

	* OleDbTransaction.cs: implemented protected constructors.

	* TestGDA.cs: simple test for libgda API.

svn path=/trunk/mcs/; revision=5010
2002-05-29 17:46:32 +00:00
Rodrigo Moya 3b7256d489 2002-05-27 Rodrigo Moya <[email protected]>
Started System.Data.OleDb provider, based on libgda.

svn path=/trunk/mcs/; revision=4993
2002-05-28 19:13:30 +00:00