Commit Graph
181 Commits
Author SHA1 Message Date
Senganal T cfae80d105 2006-02-13 Senganal T <[email protected]>
* Test/ProviderTests/System.Data.SqlClient/SqlAdapterTest.cs : Added testcases for #77480
	* System.Data.Common/DbDataAdapter.cs :
		- FillSchema  : 
			- Add table to schema only if MissingSchemaAction is not Ignore
			Add schema to table if MissingSchemaAction is set to either of
			Add or AddWithKey
		- BuildSchema :
			- Set the Schema values only if MissingSchemaAction is set to
			AddWithKey


svn path=/trunk/mcs/; revision=56830
2006-02-13 06:48:38 +00:00
Senganal T 0051e32108 2006-01-31 Senganal T <[email protected]>
* System.Data.Common/DbDataAdapter.cs :
		- Corrected an error in the prev checkin.. Fixes #77415


svn path=/trunk/mcs/; revision=56336
2006-01-31 15:07:19 +00:00
Konstantin Triger 788b165e81 remove TARGET_JVM ifdef
svn path=/trunk/mcs/; revision=56325
2006-01-31 11:59:24 +00:00
Konstantin Triger 2752255865 TARGET_JVM: moving DbConvert.cs
svn path=/trunk/mcs/; revision=56220
2006-01-29 13:21:22 +00:00
Konstantin Triger 3db8a13839 TARGET_JVM: making public
svn path=/trunk/mcs/; revision=56219
2006-01-29 13:14:43 +00:00
Senganal T 9c65e65c45 2006-01-27 Senganal T <[email protected]>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs :
		- Modified GetSqlMoney () , to set the precision and Scale correctly.
		- Modified ProcessColumnDetails , to set the schema values correctly.
	* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsDataColumn.cs : Added some default values for the column schema
	* System.Data/Test/ProviderTests/ProviderIndependant/DataReaderTest : Corrected a failing testcase.
	* System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandBuilderTest.cs : corrected a failing testcase
	* System.Data/System.Data.SqlTypes/SqlDateTime : Corrected the MaxValue for SqlDateTime
	* System.Data/System.Data.Common/DbDataAdapter.cs :
		- Modified schema population to follow MissingSchemaAction and MissingMappingAction
		- Add a column to the Primary Key only if its not a hidden key
		- Added some argument checks
		- Removed some redundant code
	* System.Data/System.Data.Common/DataAdapter :
		- Added argument checks
	* System.Data/System.Data.Common/ExceptionHelper :
		- Added InvalidEnumException , a helper function to print error msg
	* System.Data/System.Data.SqlClient/SqlCommandBuilder.cs :
		- Modified  CreateUpdateCommand,CreateDeleteCommand , to not include
		column name in the query if its a expression col.
		Also, modified the queries to match the generated queries in ms.net
	* System.Data/System.Data.SqlClient/SqlCommand.cs :
		- Modifed Prepare, to check if Parameter is explicitly initialized
	* System.Data/System.Data.SqlClient/SqlParameter.cs :
		- Added CheckIfInitialized : Checks if datatype is explicitly set and
		non-zero size is set for variable datatypes.
	* System.Data/System.Data.SqlClient/SqlDataReader.cs :
		- Added code for GetSqlBinary ()
		- Fixed GetFieldCount ()
		- Added more checks and exceptions. 

Fixes most of the failing SqlClient Provider Tests .

svn path=/trunk/mcs/; revision=56167
2006-01-27 15:54:36 +00:00
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