Commit Graph
85 Commits
Author SHA1 Message Date
Sureshkumar T 43bef71bf3 In System.Data.Common:
2005-08-05  Sureshkumar T  <[email protected]>

	* DbDataAdapter.cs:
	- Update (): set parameter values only after getting the
	appropriate command from command builder. Close reader only if it
	is not closed before. Use parameter's SourceVersion. Whitespace
	corrections to comply with standard.

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

	* SqlCommandBuilder.cs: Set SourceVersion property to the created
	parameters as it is used by the Adapter's Update method.

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

	* OdbcDataReader.cs: RecordsAffected: get value from command.
	GetSchemaTable (): set IsExpression based on BaseTableName. set
	AllowDBNull to false if the column is PK.

	* OdbcCommand.cs: correct UpdatedRowSource is returned. whitespace
	changes to conform to standard.

	* OdbcCommandBuilder.cs: Implemented.

	* OdbcParameter.cs: Direction is set to Input by default.


svn path=/trunk/mcs/; revision=48043
2005-08-05 14:59:55 +00:00
Sureshkumar T 88fba070be In System.Data.Common:
2005-07-22  Sureshkumar T  <[email protected]>

	* DataColumnMappingCollection.cs: updated attributes & attribute
	descriptions to match with masterinfos.

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

	* SqlCommandBuilder.cs, SqlParameterCollection.cs,
	SqlConnection.cs, SqlParameter.cs:
	- updated attributes & attribute descriptions to match with
	masterinfos.

In System.Data:
	* DataViewSettingCollection.cs, DataTableCollection.cs,
	DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
	DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
	DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
	- updated attributes & attribute descriptions to match with
	masterinfos.

In System.Data.Odbc:
	* OdbcParameter.cs: updated attributes & attribute descriptions to
	match with masterinfos.


svn path=/trunk/mcs/; revision=47554
2005-07-22 10:57:02 +00:00
Sureshkumar T 425bc04d75 In System.Data.Common:
2005-07-15  Sureshkumar T  <[email protected]>

	* DataTableMappingCollection.cs: GetTableMappingBySchemaAction:
	meaningful error message if mapping is missing.

	* DbDataAdapter.cs: Update: meaningful message if table is missing.

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

	* SqlCommandBuilder.cs:
	- set_DataAdapter: unsubscribe event if DataAdapter is reset.
	- CreateInsertCommand, CreateUpdateCommand, CreateDeleteCommand:
	if column mapping is missing, use the source column name. use
	proper version to get the data. 
	- RowUpdatingHandler: set status to continue to actually process
	the query.


svn path=/trunk/mcs/; revision=47340
2005-07-15 13:15:36 +00:00
Ben Maurer a68aa2eda4 remove executable bit from changelogs
svn path=/trunk/mcs/; revision=46563
2005-06-27 15:53:16 +00:00
Sureshkumar T da0e7ceb01 2005-06-22 Sureshkumar T <[email protected]>
* Index.cs: Remove : length for Array.Copy (a, i+1, a, i, length -
	(i+1)) corrected.


svn path=/trunk/mcs/; revision=46351
2005-06-22 07:49:16 +00:00
Sureshkumar T 6809aa66f4 2005-06-21 Sureshkumar T <[email protected]>
* System.Data.Common/DbConnectionStringBuilder.cs: Implemented method for parsing
	  connection string through "ConnectionString" property.
	* System.Data.Common/DbConnectionStringBuilderHelper.cs: Helper class to provide
	  conversion between string=>.net type mapping for connection string
	  builders. The idea is to use between other providers (odbc) as well.
	* System.Data.SqlClient/SqlConnectionStringBuilder.cs: Connection String Builder class
	  for SqlClient Data Provider.
	* Test/System.Data.SqlClient/SqlConnectionStringBuilderTest.cs: Added some preliminary tests.
	* System.Data.dll.sources: Added SqlConnectionStringBuilder.cs and DbConnectionStringBuilderHelper.cs
	* System.Data_test.dll.sources: Added SqlConnectionStringBuilderTest.cs


svn path=/trunk/mcs/; revision=46289
2005-06-21 09:56:41 +00:00
Boris Kirzner 32a7d770ef Changes toward common code base with TARGET_JVM
svn path=/trunk/mcs/; revision=45163
2005-05-29 14:36:27 +00:00
Konstantin Triger c32144fac2 fix value fetch logic
svn path=/trunk/mcs/; revision=44978
2005-05-25 07:58:40 +00:00
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