Commit Graph
175 Commits
Author SHA1 Message Date
Boris Kirzner e4656fdcfa Rremoved redundant call to RebuildIndex() in constructor.
svn path=/trunk/mcs/; revision=55374
2006-01-11 15:03:30 +00:00
Daniel Morgan c34ef44d43 2006-01-01 Daniel Morgan <[email protected]>
* System.Data.Common/DbDataAdapter.cs: fix
	regression for NET_2_0 causing NotImplementedException.
	Fixes bug #77105.

svn path=/trunk/mcs/; revision=54948
2006-01-01 21:07:11 +00:00
Konstantin Triger 2dd47010c8 fix index updates
svn path=/trunk/mcs/; revision=54453
2005-12-15 14:17:30 +00:00
Konstantin Triger 126554c4fe TARGET_JVM build changes
svn path=/trunk/mcs/; revision=53344
2005-11-22 14:29:51 +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
Konstantin Triger acf2a89915 removed extra type validation for object container
svn path=/trunk/mcs/; revision=52124
2005-10-24 12:11:37 +00:00
Senganal T b5a6052ffa 2005-10-17 Senganal T <[email protected]>
* Test/ProviderTests/System.Data.SqlClient/SqlDataAdapterTest.cs :
		- Added Testcase for bug #76433.

	* In System.Data.Common/DbDataAdapter.cs : 
		- BuildSchema() : Set the value of DataColumn Property 'AllowDBNull'
		as returned by database. Fixes bug#76433. 


svn path=/trunk/mcs/; revision=51791
2005-10-17 09:23:19 +00:00
Boris Kirzner c40ca95e84 Reusing indexes in DataTable.Select() and supporting fixes.
svn path=/trunk/mcs/; revision=50469
2005-09-22 11:52:30 +00:00
Boris Kirzner df3384d411 Do not convert value if container type is System.Object.
svn path=/trunk/mcs/; revision=49634
2005-09-07 14:01:31 +00:00
Gert Driesen 2835f6b9a7 * DbTypes.cs: Marked internal to fix public API.
svn path=/trunk/mcs/; revision=48140
2005-08-08 17:26:40 +00:00
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
Konstantin Triger c41b07156f fixing net_2_0 compilation
svn path=/trunk/mcs/; revision=44554
2005-05-16 10:14:14 +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 03f0186151 fixes for ImportRowTest test case
svn path=/branches/Mainsoft.System.Data/mcs/; revision=44544
2005-05-15 20:51:31 +00:00
Konstantin Triger 8085d0c795 adding TARGET_JVM define
svn path=/branches/Mainsoft.System.Data/mcs/; revision=44217
2005-05-08 14:52:25 +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
Konstantin Triger 729c5dbdf0 restore NET_2_0 ifdef
svn path=/branches/Mainsoft.System.Data/mcs/; revision=43878
2005-05-02 12:53:53 +00:00
Konstantin Triger 862e567b26 add TARGET_JVM ifdef
svn path=/branches/Mainsoft.System.Data/mcs/; revision=43851
2005-05-01 17:02:53 +00:00
Konstantin Triger 9642e4d03e delete obsolete files
svn path=/branches/Mainsoft.System.Data/mcs/; revision=43850
2005-05-01 16:56:56 +00:00
Konstantin Triger ba2e565a7a svn path=/branches/Mainsoft.System.Data/mcs/; revision=43849 2005-05-01 16:52:03 +00:00
Konstantin Triger 0094a5a301 svn path=/branches/Mainsoft.System.Data/mcs/; revision=43848 2005-05-01 16:51:17 +00:00
Konstantin Triger b8a39e08dc svn path=/branches/Mainsoft.System.Data/mcs/; revision=43847 2005-05-01 16:49:19 +00:00
Konstantin Triger 9649d2f07f svn path=/branches/Mainsoft.System.Data/mcs/; revision=43846 2005-05-01 16:48:44 +00:00
Konstantin Triger 65a7a07f57 svn path=/branches/Mainsoft.System.Data/mcs/; revision=43845 2005-05-01 16:47:49 +00:00
Konstantin Triger 29885394c0 svn path=/branches/Mainsoft.System.Data/mcs/; revision=43844 2005-05-01 16:45:33 +00:00
Konstantin Triger f2778ad2f7 svn path=/branches/Mainsoft.System.Data/mcs/; revision=43843 2005-05-01 16:44:31 +00:00
Konstantin Triger fbe36dc3e3 svn path=/branches/Mainsoft.System.Data/mcs/; revision=43842 2005-05-01 16:43:33 +00:00
Konstantin Triger 560563feda DbCommandOptionalFeatures.cs: revert to r43344
svn path=/branches/Mainsoft.System.Data/mcs/; revision=43841
2005-05-01 16:28:09 +00:00
Konstantin Triger 7d1cb5c946 DbConnectionString.cs, DbConnectionOptions.cs: revert to r43344
svn path=/branches/Mainsoft.System.Data/mcs/; revision=43837
2005-05-01 12:14:22 +00:00
Konstantin Triger 6191c42a03 Rostore the Dispose logic
svn path=/branches/Mainsoft.System.Data/mcs/; revision=43836
2005-05-01 09:58:28 +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
Boris Kirzner cc4891c52c Drop of Mainsoft.System.Data
svn path=/branches/Mainsoft.System.Data/mcs/; revision=43607
2005-04-26 17:22:27 +00:00
Boris Kirzner 13b3fc466d Drop of Mainsoft.System.Data
svn path=/branches/Mainsoft.System.Data/mcs/; revision=43606
2005-04-26 17:20:55 +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