Commit Graph
24 Commits
Author SHA1 Message Date
Marek Safar 02e9af391d Warnings cleanup
svn path=/trunk/mcs/; revision=111855
2008-08-28 19:08:55 +00:00
Nagappan Alagappan 3a1e9f864d * OleDbDataReader.cs: Removed bogus MonoTODO.
svn path=/trunk/mcs/; revision=86518
2007-09-27 17:29:36 +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
Gert Driesen 2452eec21b * OleDbDataReader.cs: Code formatting.
svn path=/trunk/mcs/; revision=81144
2007-07-01 12:51:16 +00:00
Sebastien Pouliot dc60d22be7 2005-10-04 Sebastien Pouliot <[email protected]>
* OleDbDataReader.cs: Added a call to GC.SuppressFinalize in Dispose
	method (and avoids calling the destructor if the object was disposed).
	* OleDbTransaction.cs: Added a call to GC.SuppressFinalize in Dispose
	method (even if we throw an NotImplementedException afterward). This
	will remove warnings from gendarme.


svn path=/trunk/mcs/; revision=51228
2005-10-04 23:32:28 +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
Atsushi Eno 75d61ade9d 2004-05-27 Atsushi Enomoto <[email protected]>
* OleDbDataReader.cs : don't output debug message to Console.

svn path=/trunk/mcs/; revision=28241
2004-05-27 09:46:48 +00:00
Umadevi S 131e878b75 2004-05-13 Umadevi S ([email protected])
* OleDbDataReader.cs - Stubbed HasRows method
                        - Implemented EditorBrowsableAttribute
        * OleDbParameterConverter.cs - Stubbed this class
        * OleDbParameter.cs - Added a few attributes.

svn path=/trunk/mcs/; revision=27258
2004-05-13 10:47:06 +00:00
Daniel Morgan 95aee8b7a2 2002-11-01 Daniel Morgan <[email protected]>
* OleDbDataReader.cs: implemented
	Dispose() and GetEnumerator()

svn path=/trunk/mcs/; revision=8740
2002-11-02 01:29:56 +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
Daniel Morgan 9276dbc434 2002-10-15 Daniel Morgan <[email protected]>
* System.Data.OleDb/libgda.cs: added more functions
	to platfrom invoke into shared library libgda

	* System.Data.OleDb/OleDbDataReader.cs: implemented
	GetSchemaTable() and GetFieldType()

svn path=/trunk/mcs/; revision=8299
2002-10-15 21:46:11 +00:00
Rodrigo Moya db5abb3560 2002-08-21 Rodrigo Moya <[email protected]>
* System.Data.OleDb/libgda.cs: adapted to changes in libgda (get_vtype
	and get_type for GdaValue).

	* System.Data.OleDb/OleDbDataReader.cs: adapted to changes in
	libgda.cs.

svn path=/trunk/mcs/; revision=6870
2002-08-22 00:13:35 +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 36253ba8b8 2002-08-18 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbDataReader.cs (Close): clear the results
	ArrayList after releasing the items.
	(GetName, GetDateTime, GetDouble, GetSingle, GetInt16, GetInt32,
	 GetOrdinal, GetString): implemented.
	(GetDataTypeName): made it get the type from the data model, not from
	the current value, which could not have been retrieved yet.
	(GetValue): call the Get* method corresponding with the data type of
	the requested column.

	* System.Data.OleDb/libgda.cs: added more libgda functions.
	(GdaTimestamp, GdaDate, GdaTime): new marshalled structures.

	* System.Data.OleDb/TestOleDb.cs (TestDateReader): display column
	titles via OleDbDataReader.GetName ().
	(TestOleDb): create temporary table with a date field.
	(InsertRow): set current date for the date field.

svn path=/trunk/mcs/; revision=6722
2002-08-18 15:54:49 +00:00
Rodrigo Moya 0624655c6e 2002-08-18 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbDataReader.cs (this[]): made it just call
	GetValue, which will take care of all the work needed.
	(Close): implemented basic stuff.
	(~OleDbDataReader): implemented.

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

svn path=/trunk/mcs/; revision=6721
2002-08-18 12:47:50 +00:00
Rodrigo Moya 533db1f6d6 2002-08-16 Rodrigo Moya <[email protected]>
* System.Data.OleDb/libgda.cs: added new needed libgda functions.

	* System.Data.OleDb/OleDbDataReader.cs (GetBoolean): throw exceptions
	when there are errors.
	(GetByte, GetChar, GetDataTypeName, GetValue, Read): implemented.

	* System.Data.OleDb/TestOleDb.cs: added more testing code for data
	readers.

svn path=/trunk/mcs/; revision=6662
2002-08-16 02:31:27 +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
Rodrigo Moya 791551a1fd 2002-08-11 Rodrigo Moya <[email protected]>
* System.Data.OleDb/libgda.cs: added some GdaValue functions.

	* System.Data.OleDb/OleDbCommand.cs (OpenReader): removed this
	internal method, since we don't need it.
	(ExecuteReader): call SetupGdaCommand before executing the command
	via libgda functions.
	(ExecuteScalar): implemented.

	* System.Data.OleDb/OleDbDateReader.cs (OleDbDataReader): removed call
	to OleDbCommand.OpenReader.
	(GetBoolean): implemented.

svn path=/trunk/mcs/; revision=6597
2002-08-12 15:43:20 +00:00
Rodrigo Moya b1b2f7650f 2002-07-30 Rodrigo Moya <[email protected]>
* OleDbDataReader.cs (FieldCount): implemented.
	(IsClosed, Item, RecordsAffected): implemented some properties.

	* libgda.cs: added GdaDataModel methods.

svn path=/trunk/mcs/; revision=6266
2002-07-30 23:21:29 +00:00
Rodrigo Moya 11d169f36a 2002-07-29 Rodrigo Moya <[email protected]>
* OleDbDataReader.cs (OleDbDataReader constructor): changed to receive
	a second argument (ArrayList results).
	(NextResult): implemented.

	* OleDbCommand.cs: don't store the ArrayList of results, since we'll
	pass that to the OleDbDataReader.
	(OleDbCommand constructor): don't create the ArrayList of results.
	(GdaResults): removed property.
	(ExecuteReader): create a temporary ArrayList and pass that to the
	OleDbDataReader constructor.

svn path=/trunk/mcs/; revision=6236
2002-07-29 10:12:21 +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 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