Commit Graph
177 Commits
Author SHA1 Message Date
Umadevi S 7d83ff07f7 Added DbException.cs
svn path=/trunk/mcs/; revision=44962
2005-05-25 03:29:25 +00:00
Umadevi S e2862b84c7 Added file DbProviderSpecificTypePropertyAttribute.cs
svn path=/trunk/mcs/; revision=44787
2005-05-20 03:40:35 +00:00
Umadevi S bfb376dfc9 .net2.0 property of RowUpdatingEventArgs.cs implemented
svn path=/trunk/mcs/; revision=44732
2005-05-19 06:33:31 +00:00
Konstantin Triger b06df0d3be init schema values with defaults if missing
svn path=/trunk/mcs/; revision=44688
2005-05-18 15:57:42 +00:00
Sureshkumar T 57f15cb5da * System.Data/DataRow.cs:
* System.Data/DataTable.cs: 
	* System.Data.Common/RecordCache.cs: quick fix for 2.0 profile build failure (follow up for check in 2005-05-16).


svn path=/trunk/mcs/; revision=44552
2005-05-16 08:34:36 +00:00
Konstantin Triger 2a82592256 merging the Mainsoft branch to the trunk
svn path=/trunk/mcs/; revision=44547
2005-05-15 23:15:37 +00:00
Konstantin Triger cd1502cc1f fixes for ImportRowTest test case
svn path=/branches/Mainsoft.System.Data/mcs/; revision=44545
2005-05-15 20:53:53 +00:00
Konstantin Triger f40b78a351 Updating ChangeLog with the redesign changes
svn path=/branches/Mainsoft.System.Data/mcs/; revision=43888
2005-05-02 15:41:55 +00:00
Sureshkumar T 795c6d2a23 2005-04-27 Sureshkumar T <[email protected]>
* System.Data/DataTableReader.cs: Implemented most of the TODO.
	* Test/System.Data/DataTableReaderTest.cs: Added Tests for DataTableReader class.
	* System.Data.Common/DbDataReader.cs: Added static method to construct the schema
           table with default schema. Could be reused in many places.
	* System.Data_test.dll.sources: Added DataTableReaderTest.cs


svn path=/trunk/mcs/; revision=43650
2005-04-27 12:39:14 +00:00
Sureshkumar T b1ca844c7e In Test/System.Data:
2005-04-22  Sureshkumar T  <[email protected]>

	* DataTableLoadRowTest.cs: Added. A test case for testing
	LoadDataRow method of DataTable. This tests for various
	possiblities of row state and loadoption.

In System.Data.Common:
2005-04-22  Sureshkumar T  <[email protected]>

	* DbDataAdapter.cs: Moved FillTable and BuildSchema as static
	methods as they are not operating on the current instance. This
	could be reused to fill any table from a data reader.

	* RecordCache.cs: While disposing records, make sure that the
	record is not already disposed. i.e. to make sure later the same
	record is not reused. Implemented a static method to compare two
	version of records in a container.

In .:
2005-04-22  Sureshkumar T  <[email protected]>

	* System.Data_test.dll.sources: Added DataTableLoadRowTest.cs.

In System.Data:
2005-04-22  Sureshkumar T  <[email protected]>

	* LoadOption.cs: Changed the enums. Keeping old values for
	migration.

	* DataTable.cs: Implemented methods Load and its overloads. Also
	implemented LoadDataRow.

	* DataRowCollection.cs: Added a variation of the Find method to
	return a row even if it is of state Deleted. This is required for
	DataTable.LoadDataRow method.

	* DataRow.cs: Implemented internal helper method Load for loading
	values from an object array and given an LoadOption (2.0 feature).

	* DataRowAction.cs: Added few more enums for .net 2.0. Sorted
	alphabetically.


svn path=/trunk/mcs/; revision=43440
2005-04-22 13:11:40 +00:00
Sureshkumar T b3892b3575 In System.Data.Common:
2005-04-18  Sureshkumar T  <[email protected]>

	* DataAdapter.cs: Implemenetd OnFillError handler.

	* DbDataAdapter.cs: BuildSchema (): the table to be filled might
	contain few additional columns as well. so mapping length should
	be columns' length + fields' length.

In System.Data:
2005-04-18  Sureshkumar T  <[email protected]>

        * DataRow.cs: if there are no mapping fields, fill with default
	  value.


svn path=/trunk/mcs/; revision=43192
2005-04-18 05:51:46 +00:00
Sureshkumar T 492b0b97c3 2005-03-24 Sureshkumar T <[email protected]>
* DbDataAdapter.cs: Update: If  SourceColumn is null, do not set
	value for the parameter.


svn path=/trunk/mcs/; revision=42199
2005-03-24 09:29:28 +00:00
Sureshkumar T 65c8a4342c 2005-03-23 Sureshkumar T <[email protected]>
* DbDataAdapter.cs: For Update, disable ReadOnly constraint
	temporarily before updating the row. Info from Ingo Bauersachs.
	SkipAllRemainingRows should also skip current row (msdn).


svn path=/trunk/mcs/; revision=42186
2005-03-24 05:18:34 +00:00
Sureshkumar T ddc8754ea2 * RowUpdatedEventArgs.cs: if custom error is not set, throw a
default error.


svn path=/trunk/mcs/; revision=42097
2005-03-22 11:09:19 +00:00
Sureshkumar T a30d0098da 2005-03-22 Sureshkumar T <[email protected]>
* DbDataAdapter.cs: Update (): update the rows based on the
	UpdateRowSource property. Process further based on the
	RowUpdatedEvent handler argument's Status property.

	Fixes bug #73587. Thanks to [email protected] (Ingo Bauersachs) for
	bug report and patch.


svn path=/trunk/mcs/; revision=42094
2005-03-22 10:58:48 +00:00
Sureshkumar T f6b6dc76a5 In System.Data.Common:
2005-03-01  Sureshkumar T  <[email protected]>

	* ConnectionStringsSectionHandler.cs: Added. configuration section
	handler for section "connectionStrings". This handler is a ad hoc
	solution till the new configuration API is available in mono.

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

	* System.Data.dll.sources: Added System.Data.Common/
	ConnectionStringsSectionHandler.cs.
	* app_test_2.0.config: Changed the configuration handler for
	seciton "connectionStrings".

In Test/System.Data.Common:

	* ConnectionStringsSectionTest.cs : removed console.writeline-s.

svn path=/trunk/mcs/; revision=41307
2005-03-01 05:48:39 +00:00
Sureshkumar T 8e5f7a5975 2005-02-04 Sureshkumar T <[email protected]>
* DbDataAdapter.cs (Update ()) :
	- Check for one return result set and map the values back to
	  datatable.
	- Check for output & return value parameters and update the value
	  back to mapped column
	- check for recordsAffected only after closing the reader.


svn path=/trunk/mcs/; revision=40120
2005-02-04 09:55:38 +00:00
Sureshkumar T 7ad878f3ee In System.Data.ProviderBase:
2005-02-02  Sureshkumar T  <[email protected]>

	* DbConnectionBase.cs: Implement Dispose Pattern

In System.Data.Common:
2005-02-02  Sureshkumar T  <[email protected]>

	* DbConnection.cs: Implement Dispose pattern.


svn path=/trunk/mcs/; revision=39973
2005-02-02 10:36:06 +00:00
Atsushi Eno e5346e0ca9 2005-01-25 Atsushi Enomoto <[email protected]>
* DbDataPermission.cs : Empty.Union(Empty) is Empty.


svn path=/trunk/mcs/; revision=39472
2005-01-25 06:38:16 +00:00
Atsushi Eno acd4da0ec6 2005-01-14 Atsushi Enomoto <[email protected]>
* DbDataPermissionAttribute.cs, PermissionHelper.cs :
	  fixed some incompatible type of exception between 2.0 and 1.x.
	* DataContainer.cs :
	  Wrap exceptions thrown by SetValue() within ArgumentException.

	* SqlClientPermissionTest.cs, SqlClientPermissionAttributeTest.cs:
	  Fixed some incompatible type of exception between 2.0 and 1.1.

	* OleDbPermissionTest.cs, OleDbPermissionAttributeTest.cs:
	  Fixed some incompatible type of exception between 2.0 and 1.1.

	* OdbcPermissionTest.cs, OdbcPermissionAttributeTest.cs:
	  Fixed some incompatible type of exception between 2.0 and 1.1.

	* DBDataPermissionTest.cs, DBDataPermissionAttributeTest.cs:
	  Fixed some incompatible type of exception between 2.0 and 1.1.



svn path=/trunk/mcs/; revision=38945
2005-01-14 17:03:07 +00:00
Sureshkumar T 07a11cbd53 2004-12-10 Sureshkumar T <[email protected]>
* DbDataAdapter.cs (BuildSchema): Add the primary key schema iff
	MissingSchemaAction is set to AddWithKey. Also, Add auto increment
	value from the source table. fixes bug #67757 and #69110.


svn path=/trunk/mcs/; revision=37567
2004-12-10 13:39:28 +00:00
Sureshkumar T 38626228f6 2004-11-24 Sureshkumar T <[email protected]>
Changes in Base class implementaitons for Provider Factory 
	Implementation.
In System.Data.Common:
	* DbProviderSupportedClasses.cs: Added correct enum values.
	* DbConnection.cs: Missing virtual method EnlistTransaction Added.
	* DbCommand.cs: Implemented ProviderFactory base factory methods.

In System.Data.ProviderBase:
	* DbParameterCollectionBase.cs: Class name changed according to
	the documentation
	* DbDataReaderBase.cs: Added internal constructor to satisfy
	SqlDataReader, which takes command object.
	* DbConnectionBase.cs: Added additional methods overriding
	DbConnection


svn path=/trunk/mcs/; revision=36458
2004-11-24 09:38:48 +00:00
Sureshkumar T 8e13652448 In System.Data.Common:
2004-11-22  Sureshkumar T  <[email protected]>

	* DbConnectionStringBuilder.cs: Class for helping creation of db
	connection strings added.

In Test/System.Data.Common:
2004-11-22  Sureshkumar T  <[email protected]>

	* DbConnectionStringBuilderTest.cs: Test cases for
	DbConnectionStringBuilder class. These are independant tests.


svn path=/trunk/mcs/; revision=36382
2004-11-22 11:07:51 +00:00
Sureshkumar T 9b97fa9c9b * DbProviderFactories.cs: Implemented all the stubs. Added functionality for
getting available provider factories and creating a specified provider factory.

* DbProviderFactoriesConfigurationHandler.cs: Added functionality for handling
DbProviderFactories configuration section.

* DbProviderFactory.cs: Added protected constructor. SupportedClasses property
is made abstract.

svn path=/trunk/mcs/; revision=34592
2004-10-01 13:09:13 +00:00
Sebastien Pouliot 96fc12feeb 2004-09-14 Sebastien Pouliot <[email protected]>
* DbDataPermission.cs: Implemented Intersect, IsSubsetOf and Union.
	Implementation isn't complete as the restrictions seems to change the
	expected results (breaking some rules like x.IsSubsetOf (x) == false).
	Better (real-world) tests cases are required.
	* PermissionHelper.cs: Fixed small differences between System.Data.dll
	validations wrt to mscorlib.dll (XML and PermissionState).

svn path=/trunk/mcs/; revision=33902
2004-09-14 19:56:12 +00:00
Sebastien Pouliot 57aab80b5b 2004-09-13 Sebastien Pouliot <[email protected]>
* DbConnectionOptions.cs: New class for Fx 2.0. Partial implementation
	to support new methods in DBDataPermission.
	* DbConnectionString.cs: Updated class to split from/inherit
	DbConnectionOptions class.
	* DbDataPermission.cs: Implemented Add, Clear, Copy, ToXml methods and
	completed constructors.
	* DbDataPermissionAttribute.cs: Completed/fixed class.
	* PermissionHelper.cs: Helper methods to create permission classes.

svn path=/trunk/mcs/; revision=33828
2004-09-13 23:24:34 +00:00
Francisco Figueiredo Jr. 60f8562d0b 2004-08-31 Francisco Figueiredo Jr. <[email protected]>
* DbDataAdapter.cs: Fix for out of memory exceptions when trying to fill a dataset with a query which doesn't return a resultset like insert, delete or update.

svn path=/trunk/mcs/; revision=33127
2004-08-31 22:38:50 +00:00
Umadevi S a724f82493 2004-07-21 Umadevi S <[email protected]>
* DbDataRecord.cs - Fix for bug 58163. Return DBNull instead of null

svn path=/trunk/mcs/; revision=31320
2004-07-21 02:54:27 +00:00
Umadevi S 58c4a474da 2004-07-07 Umadevi S <[email protected]>
* DataContainer.cs :CheckedforNull before calling the relavant setmethods in each of the
                SetItemForDataRecord method for the DateTimeClass
	(patch submitted by Aleksey Demakov)

svn path=/trunk/mcs/; revision=30829
2004-07-07 09:39:02 +00:00
Atsushi Eno 3e2821d002 2004-06-24 Atsushi Enomoto <[email protected]>
* DataColumnMappingCollection.cs : fixed typo.
	* DbDataAdapter.cs : column mappings were not filled.

svn path=/trunk/mcs/; revision=30321
2004-06-24 16:25:02 +00:00
Atsushi Eno b4bdf95c9d 2004-06-24 Atsushi Enomoto <[email protected]>
* DataTableMapping.cs : Clone() should also clone ColumnMappings.

svn path=/trunk/mcs/; revision=30316
2004-06-24 14:53:54 +00:00
Umadevi S 41e1f3ce9f 2004-06-18 Umadevi S <[email protected]>
* DataContainer.cs - CheckedforNull before calling the relavant setmethods in each of the
                SetItemForDataRecord method for all the classes.

svn path=/trunk/mcs/; revision=29866
2004-06-18 10:33:17 +00:00
Boris Kirzner 351b27d360 * RecordCache.cs : Added CopyRecord mathod that copies single record from one table to another.
svn path=/trunk/mcs/; revision=29754
2004-06-17 08:39:07 +00:00
Boris Kirzner 08f68bf0c9 * Datacontainer.cs :
- Store and retreival of null and DBNull values reviewed.
  - Added GetInt64 to support AutoIncrement of DataColumn.
  - Added missing CopyValue method to BitDataContainer.
  - Added FillValues method to propagate single value to whole container.

svn path=/trunk/mcs/; revision=29753
2004-06-17 08:35:21 +00:00
Umadevi S 4aa10877e8 2004-06-10 Umadevi S <[email protected]>
* DataTableMappingCollection.cs - fixed nunit testcase errors
        IndexOfDataSetTable method

svn path=/trunk/mcs/; revision=29161
2004-06-10 05:53:53 +00:00
Umadevi S ef1237f9f7 2004-06-09 Umadevi S <[email protected]>
* DataTableMappingCollection.cs - fixed nunit testcase errors
        - Add, GetByDataSetTable,Insert, Remove, RemoveAt methods.

svn path=/trunk/mcs/; revision=29102
2004-06-09 10:24:01 +00:00
Umadevi S b92efab743 2004-06-09 Umadevi S <[email protected]>
* DataColumnMappingCollection.cs - fixed nunit testcase errors
        - GetByDataSetColumn,IndexOfDataSetColumn, Remove methods.

svn path=/trunk/mcs/; revision=29095
2004-06-09 08:57:24 +00:00
Umadevi S eaabecc4bc 2004-06-08 Umadevi S <[email protected]>
* DataColumnMappingCollection.cs - fixed nunit testcase errors.
        - remove, removeat, contains methods.

svn path=/trunk/mcs/; revision=29022
2004-06-08 10:14:38 +00:00
Gert Driesen 76306c9a15 * DataAdapter.cs: added missing protected ctor
* DbDataAdapter.cs: added stub for missing protected ctor
* DbDataPermission.cs: added stubs for missing protected
ctors, added stub for missing Clear method

svn path=/trunk/mcs/; revision=28817
2004-06-04 05:34:58 +00:00
Umadevi S aba4022c63 * DataColumnMappingCollection.cs: added missing attributes on
indexers

svn path=/trunk/mcs/; revision=28678
2004-06-02 04:33:12 +00:00
Boris Kirzner d424220532 * DataContainer.cs : Bug fixes in BitDataContainer.get_Item and StringDataContainer.SetValue .
svn path=/trunk/mcs/; revision=28244
2004-05-27 10:36:17 +00:00
Gert Driesen 8663c97122 * DbDataPermissionAttribute.cs: change AllowMultiple and
Inherited to match .NET

svn path=/trunk/mcs/; revision=27771
2004-05-20 19:15:27 +00:00
Boris Kirzner b0ca597d50 * Datacontainer.cs : CompareValues reviewed. set_Item and get_Item of null and DBNull values in case of DataContainers for primitive types reviewed. Added check for null values when reading from IDataRecord.
svn path=/trunk/mcs/; revision=27765
2004-05-20 17:35:22 +00:00
Boris Kirzner 033e708f3c * RecordCache.cs - added. Each instance of record cache belongs to specific table and manages pool of records ( indexes into data containers) to be used by data rows.
* DataContainer.cs - added. Provides implementation for data containers that holds data in arrays of primitives or objects. Each data container belongs to specific DataColumn.
* DbDataAdapter.cs - changes to complete data storage redesign. Bug fix in FillTable ( to fetch exact number of records required ).

svn path=/trunk/mcs/; revision=27655
2004-05-19 09:46:00 +00:00
Umadevi S 3f468f6084 2004-05-13 Umadevi S ([email protected])
* DbDataPermissionAttribute.cs - Added KeyRestrictions property with a TODO tag

svn path=/trunk/mcs/; revision=27230
2004-05-13 05:49:30 +00:00
Gert Driesen 0b16822db1 * ComparerFactory.cs: marked internal
svn path=/trunk/mcs/; revision=26998
2004-05-09 17:10:55 +00:00
Boris Kirzner 6b77e51f9c * DataColumnMappingCollection.cs : Small fix in exception message thrown.
svn path=/trunk/mcs/; revision=25981
2004-04-26 06:15:35 +00:00
Boris Kirzner 4a5e291e23 * DbDataAdapter.cs : Fixed bug in Fill :
- Reader can have empty results (fo example from UPDATE or DELETE).
  - Reader can have results with no rows (SELECT that returns 0 rows but have columns)
  - In FillTable - skip rows only once for each table.

svn path=/trunk/mcs/; revision=25961
2004-04-25 15:46:07 +00:00
Tim Coleman a67a885961 2003-04-14 Juraj Skripsky <[email protected]>
* DbDataAdapter.cs : Refactoring of Fill. New private method
	FillTable does most of the work now. Use int[] instead of
	hashtable for mapping. Move creation of tableArray[] outside
	of loop.

svn path=/trunk/mcs/; revision=24031
2004-03-15 02:48:39 +00:00
Andreas N b8ceb78111 2004-03-12 Andreas Nahr <[email protected]>
* DbDataPermissionAttribute.cs: Added .Net 1.1 marks
	* DataColumnMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
	* DataTableMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
	* DataColumnMappingConverter: Added stub
	* DataTableMappingConverter: Added stub

svn path=/trunk/mcs/; revision=23961
2004-03-12 16:09:48 +00:00