Commit Graph
54 Commits
Author SHA1 Message Date
Gert Driesen 573643b6fc * SqlCommandTest.cs: Added (SMALL)MONEY rounding tests.
svn path=/trunk/mcs/; revision=118536
2008-11-11 19:22:02 +00:00
Gert Driesen 79f260901c * SqlCommandTest.cs: Added tests for bug #428139. Added test for
SMALLMONEY overflows. Added workaround for Assert.AreEqual bug in 
NUnit v2.2.0. 

svn path=/trunk/mcs/; revision=118529
2008-11-11 18:20:27 +00:00
Gert Driesen 82dd9fc53c * TdsConnectionPool.cs: Added TdsConnectionPoolManager.GetConnection
overload that can be used to retrieve an existing connection pool.
Modified ResetConnectionPool () to skip free slots in the pool and to
close pooled connections that are not in use. Pooled connections that
are in use are now marked as non-pooled so that they are no longer
returned to the pool when they are closed. Fixes bug #443131.
* SqlConnection.cs: In Close, also remove reference to pool. In Open,
set TdsConnection.Pooling to false for a non-pooled connection.
Fixed ClearAllPools to no longer create a new connection for each
pool. In ClearPool, perform a lookup of the pool to clear using
the connectionstring as the pool field may refer to another pool
(as the connectionstring may have changed).
* SqlConnectionTest.cs: Added tests for ClearPool and ClearAllPools.

svn path=/trunk/mcs/; revision=118308
2008-11-09 13:36:37 +00:00
Gert Driesen d780e61bbd * SqlConnectionTest.cs: Added test for bug #383061.
svn path=/trunk/mcs/; revision=118279
2008-11-08 16:53:04 +00:00
Veerapuram Varadhan 862681f443 Added test for DeriveParameters
svn path=/trunk/mcs/; revision=113328
2008-09-17 16:54:30 +00:00
Gert Driesen ce5f523da5 * SqlCommandTest.cs: Enabled test for bug #412569.
* SqlCommand.cs (ExecuteReader): When behavior includes SingleRow,
then only return a single result. Fixes bug #412569.

svn path=/trunk/mcs/; revision=109065
2008-07-28 19:01:02 +00:00
Gert Driesen f5f8d8daba * SqlCommand.cs: Fixed param name in ArgumentException for negative
CommandTimeout to match MS. On 2.0 profile, throw NRE in Prepare
when connection is NULL. In Prepare, return immediately after
connection check (2.0 only) for stored procedures, or when no
parameters are added. Added check to see if transaction is
associated with same connection as the command and updated
exception messages.
* SqlCommandTest.cs: Enabled CommandTimeout test. Enabled test for
Prepare with NULL connection. Enabled test for bug #412586.
* SqlCommandTest.cs: Enabled and improved tests for pending transaction
and transaction that is not associated with connection. Added tests for
Prepare.

svn path=/trunk/mcs/; revision=109058
2008-07-28 18:15:17 +00:00
Gert Driesen ebf1361ab6 * SqlCommand.cs: Added bool argument to ValidateCommand to specify
whether an async method is being executed. Minor changes to exception
messages to match MS.
* SqlCommandTest.cs: Enabled and improved tests for Execute* with closed
connection.
* SqlCommandTest.cs: Enabled and improved tests for Execute* with only a
transaction set.

svn path=/trunk/mcs/; revision=109043
2008-07-28 16:17:55 +00:00
Gert Driesen b1e8819b84 * SqlCommand.cs: (Transaction): On the 1.0 profile, do not allow
Transaction to be set when a reader is open for the current connection.
Fixes bug #412579.
* SqlCommandTest.cs: Enabled test for bug #412579.

svn path=/trunk/mcs/; revision=109021
2008-07-28 15:15:54 +00:00
Gert Driesen 8185146fb8 * SqlCommand.cs (Connection): Do not throw InvalidOperationException
if transaction is in progress. Fixes bug #412576. On 1.0 profile, throw
InvalidOperationException when a reader is open for the current
connection. Do not set transaction to NULL when changing connection,
instead set it to null in Transaction when transaction is no longer
open.
* SqlCommandTest.cs: Enabled and improved test for bug #412576.
Enabled test for changing Connection while reader is open.

svn path=/trunk/mcs/; revision=109018
2008-07-28 15:07:45 +00:00
Gert Driesen 4c4ae3f815 * SqlConnection.cs: Use null as default value for connectionString
field. Remove Init method, as initialization is done in
SetDefaultConnectionParameters. Initialize parms in
SetDefaultConnectionParameters to avoid calling Reset on newly
initialized collection. In Dispose (bool), also invoke base.Dispose if 
SqlConnection was already disposed. Fixes bug #412571.
* SqlConnectionTest.cs: Enabled and improved test for bug #412571.

svn path=/trunk/mcs/; revision=109013
2008-07-28 14:46:55 +00:00
Gert Driesen 8485db3629 * SqlConnection.cs(ChangeState): Return immediately when new state
equals original state. Fixes bug #412574. Removed extra whitespace.
* SqlConnectionTest.cs: Enabled test for bug #412574.

svn path=/trunk/mcs/; revision=109009
2008-07-28 13:53:56 +00:00
Gert Driesen 1f47aabcf3 * SqlCommandTest.cs: Moved tests that do not require connection to
regular test suite. Improved existing tests, and added set of new
tests. Reduce failure count.
* SqlConnectionTest.cs: Moved tests that do not require connection to
regular test suite. Improved existing tests, and added set of new
tests. Reduce failure count.
* SqlTransactionTest.cs: Added several tests.

svn path=/trunk/mcs/; revision=108997
2008-07-28 12:58:58 +00:00
Veerapuram Varadhan 57e4a0605f Fixes #326182
svn path=/trunk/mcs/; revision=107667
2008-07-10 16:46:48 +00:00
Veerapuram Varadhan ffeabbcd92 Test case to verify Bug#382635
svn path=/trunk/mcs/; revision=104443
2008-05-29 17:28:36 +00:00
Nagappan Alagappan 831403d104 2007-10-19 Nagappan A <[email protected]>
* SqlCommandBuilderTest.cs: Fixed compilation warnings.


svn path=/trunk/mcs/; revision=87822
2007-10-19 11:49:41 +00:00
Nagappan Alagappan f90d4f76a9 2007-07-31 Nagappan A <[email protected]>
* SqlConnectionTest.cs (InterfaceTransactionTest): Fixes bug
	82189. SqlConnection throws an exception if Connection or
	Transaction is set to null on IDbCommand interface.


svn path=/trunk/mcs/; revision=83061
2007-07-31 09:08:17 +00:00
Nagappan Alagappan e729424c16 2007-07-24 Nagappan A <[email protected]>
* SqlParameterTest.cs (ParameterSizeTest): Fixes Large strings
	truncated with SqlClient - Bug # 82170.


svn path=/trunk/mcs/; revision=82531
2007-07-24 06:42:24 +00:00
Nagappan Alagappan 80d6bc57b6 2007-07-22 Nagappan A <[email protected]>
* SqlTransactionTest.cs: Added exception handling.


svn path=/trunk/mcs/; revision=82423
2007-07-22 06:43:35 +00:00
Nagappan Alagappan 2d5298e7f6 2007-06-11 Nagappan A <[email protected]>
* SqlCommandTest.cs (SqlCommandDisposeTest): Added new test case
	to check, the SqlCommand.Dispose, not to dispose SqlConnection and
	SqlTransaction instances.


svn path=/trunk/mcs/; revision=79149
2007-06-11 06:04:07 +00:00
Nagappan Alagappan 90182882da 2007-06-07 Nagappan A <[email protected]>
* SqlCommandTest.cs: Fixes compilation warnings.


svn path=/trunk/mcs/; revision=78832
2007-06-07 13:06:31 +00:00
Nagappan Alagappan 7903207616 2007-05-30 Nagappan A <[email protected]>
* SqlCommandTest.cs (StoredProc_NoParameterTest)
	(StoredProc_ParameterTest, rpc_helper_function): Added new methods
	to test the implementation of TDS RPC.


svn path=/trunk/mcs/; revision=78189
2007-05-30 11:02:36 +00:00
Nagappan Alagappan 870603a584 2007-03-23 Nidhi Rawal <[email protected]>
* SqlClientFactory.cs: Created the class.
	(CreatePermissionTest): Added a test case for the method CreatePermission.


svn path=/trunk/mcs/; revision=76660
2007-05-04 04:56:33 +00:00
Nagappan Alagappan 2a69e9fc63 2007-04-03 Amit Biswas <[email protected]>
* SqlParameterCollectionTest.cs (CopyToTest): Test case for CopyTo method


svn path=/trunk/mcs/; revision=76659
2007-05-04 04:54:02 +00:00
Nagappan Alagappan 903da96171 2007-04-03 Amit Biswas <[email protected]>
* SqlDataReaderTest.cs (GetSqlBytesTest): Test case for GetSqlBytes
	(GetProviderSpecificFieldTypeTest): Test case for GetProviderSpecificFieldTypeTest
	(GetProviderSpecificValueTest): Test case for GetProviderSpecificValueTest
	(GetProviderSpecificValueLowerBoundaryTest):
	(GetProviderSpecificValueUpperBoundaryTest):
	(GetProviderSpecificValuesTest): Test case for GetProviderSpecificValuesTest
	(GetProviderSpecificValuesSmallArrayTest): Test case with an array smaller than no. of columns
	(GetProviderSpecificValuesLargeArrayTest): Test case with an array larger than no. of columns
	(GetProviderSpecificValuesNullTest): Test case for null parameters

	* SqlParameterTest.cs (XmlSchemaTest): Test case for properties related to XML schema
	(SourceColumnNullMappingTest): Test case for SourceColumnNullMappingTest
	(ctor7Test): Test case to the constructor new in .net 2.0

	* SqlParameterTest.cs (ParameterType): Corrected a bug in the test case regarding
	default values of SqlDbType and DbType
	(SqlDbTypeTest): Test for SqlDbType and DbType properties
	(ResetSqlDbTypeTest): Test for ResetSqlDbType method
	(ResetDbTypeTest): Test for ResetDbType method

	* SqlParameterCollectionTest.cs (CopyToTest): Test case for CopyTo method


svn path=/trunk/mcs/; revision=76656
2007-05-04 04:08:23 +00:00
Nagappan Alagappan 2ea5f59a13 2007-03-23 Nidhi Rawal <[email protected]>
* SqlCommandTest.cs (BeginExecuteXmlReaderTest): Written test case for the method
	BeginExecuteXmlReader.
	(BeginExecuteXmlReaderExceptionTest): Written test case for the method BeginExecuteXmlReader
	to check for InvalidOperationException.
	(CloneObjTest): Written test case for the method Clone.
	
	* SqlConnectionTest.cs (ChangePasswordNullConnStringTest): Written test case for the method
	ChangePassword to check for null connection string.
	(ChangePasswordNullPasswordTest): Written test case for the method ChangePassword to check for
	null new password.
	(ChangePasswordEmptyPasswordTest): Written test case for the method ChangePassword to check for
	password as empty string.
	(ChangePasswordExceedPasswordTest): Written test case for the method ChangePassword to check
	if the password exceeds its permitted size.
	
	* SqlClientFactory.cs: Created the class.
	(CreatePermissionTest): Added a test case for the method CreatePermission.

2007-03-20  Nidhi Rawal <[email protected]>

	* SqlConnectionStringBuilderTest.cs: Fixed the bug by including the 
	category sqlserver, in the absence of which none of the test-cases
	were executing.
	(TrustServerCertificateTest): Written test-case for the property TrustServerCertificate.
	(TypeSystemVersionTest): Written test-case for the property TypeSystemVersion.
	(UserInstanceTest): Written test-case for the property UserInstance.
	(SettingUserInstanceTest): Written test-case for checking the connection string after
	assigning the value for keyword User Instance.
	(ContextConnectionTest): Written test-case for the property ContextConnection.
	(SettingContextConnectionTest): Written test-case for checking the connection string after
	assigning the value for keyword Context Connection.

	* SqlCommandTest.cs (NotificationTest): Written test-case for property Notification.
	(NotificationAutoEnlistTest): Written the test-case for property NotificationAutoEnlist.

	* SqlConnectionTest.cs (FireInfoMessageEventOnUserErrorsTest): Written
	test-case for the property FireInfoMessageEventOnUserErrors.
	(StatisticsEnabledTest): Written test-case for the property StatisticsEnabled.

	* SqlDataAdapterTest.cs (UpdateBatchSizeTest): Written test-case for the
	property UpdateBatchSize.
	(UpdateBatchSizeArgumentOutOfRangeTest): Written test-case for the ArgumentOutOfRange
	exception for UpdateBatchSize property.

2007-03-19  Nidhi Rawal <[email protected]>

	* SqlParameterTest.cs (CompareInfoTest): Written the test case
	for property CompareInfo.
	(LocaleIdTest): Written the test case for property LocaleId.
	(SqlValueTest): Written test case for property SqlValue.


svn path=/trunk/mcs/; revision=75190
2007-03-30 12:44:22 +00:00
Andreia Gaita f733e8b5b5 2007-03-16 Andreia Gaita <[email protected]>
* SqlParameter.cs: Move isVariableSizeType flag to TdsMetaParameter
so that the TdsMetaParameter can validate itself for valid size / values.
* SqlCommand.cs (Execute): Call Validate on TdsMetaParameter.

* TdsMetaParameter.cs: Add Validate() method. For now, validate 
size/value. Add isVariableSizeType.

* SqlCommandTest.cs: Add OutputParamSizeTest1-4 to test size/value
validation exception.

svn path=/trunk/mcs/; revision=74500
2007-03-16 21:24:35 +00:00
Nagappan Alagappan 223851947b 2007-03-14 Nagappan A <[email protected]>
* SqlCommandTest.cs (ExecuteScalarTest, ExecuteReaderTest)
	(ExecuteReaderTest, PrepareTest, TransactionTest): Modified
	expected exception to NullReferenceException as it has to be
	thrown in 2.0 profile.


svn path=/trunk/mcs/; revision=74234
2007-03-14 06:03:51 +00:00
Andreia Gaita 5405c1b965 2007-03-09 Andreia Gaita <[email protected]>
* SqlCommandTest.cs: Add new test to check string parameters with 
value = null and size 0. Fixed tests for NET 2.0 (different exceptions
thrown)

* ConnectionManager.cs: small fix to close the connection if we 
mean to change the connection string and open it again

svn path=/trunk/mcs/; revision=74000
2007-03-09 13:51:10 +00:00
Andreia Gaita 31401d33cb 2007-03-09 Andreia Gaita <[email protected]>
* SqlCommand.cs (ExecuteScalar): Fix returned value for 
stored procedure calls to return the first column of the
first row produced by the proc.

* SqlCommandTest.cs: Add parameterized stored procedure call tests
to ExecuteScalar and ExecuteNonQuery.

svn path=/trunk/mcs/; revision=73982
2007-03-09 02:19:43 +00:00
Nagappan Alagappan e7d0548097 2007-01-08 Nagappan A <[email protected]>
* SqlCommandBuilderTest.cs (GetInsertCommandTest)
	(GetInsertCommandTestWithExpression, GetUpdateCommandTest): Fixed
	NET 2.0 based test conditions.
	(GetUpdateCommandBoolTest): Added new test case.
	(GetUpdateCommandTest_CheckNonUpdatableColumns): Fixed NET 2.0
	based test conditions.
	(GetUpdateCommandBoolTest_CheckNonUpdatableColumns): Added new test
	case.
	(GetUpdateDeleteCommandBoolTest_CheckParameters): Added new test
	case.
	(GetUpdateCommandDBConcurrencyExceptionTest): Fixed NET 2.0 based
	test conditions.

	* SqlDataAdapterTest.cs: Commented not working test-cases.


svn path=/trunk/mcs/; revision=70623
2007-01-08 05:59:43 +00:00
Nagappan Alagappan 2a3368d2bc 2006-12-20 Nagappan A <[email protected]>
* SqlDataAdapterTest.cs (SqlDataAdapterInheritTest): Implemented
	new class to verify protected method of DbDataAdapter.
	* Fixed existing test-cases to work with 2.0 profile.


svn path=/trunk/mcs/; revision=69820
2006-12-20 17:20:39 +00:00
Nagappan Alagappan b0a8a0d9ea 2006-12-05 Nagappan A <[email protected]>
* SqlDataAdapterTest.cs (CreateViewSSPITest): To test create view
	of SqlClient.


svn path=/trunk/mcs/; revision=69017
2006-12-05 10:01:40 +00:00
Kornél Pál 546a1134d2 Converted source files to UTF-8 (without byte order mark). Use UTF-8 as the default encoding for compilers.
svn path=/trunk/mcs/; revision=64941
2006-09-05 13:54:12 +00:00
Nagappan Alagappan 91b49d2187 * SqlConnectionTest.cs: SqlConnection.GetSchema testcases
svn path=/trunk/mcs/; revision=64546
2006-08-30 12:00:13 +00:00
Senganal T 9471a15d54 2006-05-26 Senganal T <[email protected]>
* Test/ProviderTests/System.Data.SqlClient/SqlParameterTest.cs : 
		Test if Parameter Type is inferred correctly
		when Value is null or DBNull. Also, if Type is not explicitly set,
		test if it is inferred from the value of the parameter evertime the
		value is set.
	* System.Data.SqlClient/SqlParameter.cs :
		- InferSqlType : if value is null or DBNull.Value, retain the
		current parameter type.


svn path=/trunk/mcs/; revision=61156
2006-05-26 08:26:47 +00:00
Senganal T 5cd065b00a 2006-04-18 Senganal T <[email protected]>
* Test/ProviderTests/System.Data.SqlClient/SqlConnectionTest.cs :
		- OpenTest_1 : test InvalidOperationException is raised if
		ConnectionString is empty
		- DisposeTest : test nullreference exception is not raised
	* System.Data.SqlClient/SqlConnection.cs :
		- SetConnectionString : set the pareameter to default values
		if connection string is empty or null
		- Open : Raise InvalidOperationException if Connection String
		is empty or null
		- Dispose : Test exception not raised if dispose called on a
		connection with empty connection string

	slight modification of the patch by Jonel Rienton


svn path=/trunk/mcs/; revision=59582
2006-04-18 09:58:08 +00:00
Senganal T 0ad70b979a 2006-04-07 Senganal T <[email protected]>
* Test/ProviderTests/System.Data.SqlClient/SqlDataAdapterTest,cs :
		- Added testcase for #78010
	* System.Data/DataSet.cs :
		- InternalEnforceConstraints() : Reset Indexes of all tables
		before validating constraints. Fixes #78010


svn path=/trunk/mcs/; revision=59176
2006-04-07 13:18:08 +00:00
Senganal T bd85b69021 2006-04-07 Senganal T <[email protected]>
* Test/ProviderTests/System.Data.SqlClient/SqlCommandBuilderTest.cs :
		- Corrected the testcase to check for queries corresponding to
		ms.net 2.0
		- verify that columns that do not allow nulls are not included
		in the null-checks.
		- Added testcase to check for DBConcurrencyException for
		Delete Command. 
		- Check the DataType of the null-check parameters
	* System.Data.Common/DbDataAdapter.cs :
		* Update () : If the Update/Delete Query has a null check,
		then populate the parameter value correctly.
	*  System.Data.SqlClient/SqlCommandBuilder.cs :
		* CreateDeleteCommand () 
		* CreateUpdateCommand () 
		* CreateInsertCommand () 
			- Changed the signature. Do not need DataRow parameter 
			as the Query generated is parametric.
			- Correct the null-check term in the WhereClause, set the
			correct properties for null-check parameter
			fixes #78027
			- Modified the generated query to match the query as
			generated by 2.0. We now ignore null-check in the
			whereclause if the Column does not allow nulls.
		* ctor () : Set QuotePrefix and QuoteSuffix for 2.0 profile
		* GetUpdateCommand ()
		* GetInsertCommand ()
		* GetDeleteCommand ()
			- Do not create new command everytime. Create only if
			not already created.
		* RefreshSchema : Reset the commands.


svn path=/trunk/mcs/; revision=59175
2006-04-07 12:46:57 +00:00
Senganal T e8e32eaaeb 2006-03-08 Senganal T <[email protected]>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs :
		- ProcessColumnInfo () : Set IsAutoIncrement Value for the column.
	* System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandBuilderTest.cs :
		- Added testcase to verify UpdateCommand created with AutoIncrement
		columns.
	* System.Data/Test/ProviderTests/ProviderIndependant/DataReaderTest : Added a test to verify if AutoIncrement
	value is set in the SchemaTable.


svn path=/trunk/mcs/; revision=57689
2006-03-08 11:01:37 +00:00
Senganal T 08c7b22113 2006-02-22 Senganal T <[email protected]>
* Test/System.Data/DataRowCollectionTest2.cs : Check if index is maintained for row on calling RejectChanges. 
	* Test/System.Data/DataTableTest2.cs : Check if data is loaded and merged (if key exists) correctly.
	* Test/System.Data/ForeignKeyConstraintTest.cs : Check if a ParentColumn value can be modified
		when the row is in 'Added' State. Also, check if child col values are
		updated correctly.
	* Test/ProviderTests/System.Data.SqlClient/SqlAdapterTest.cs : Added testcases for verifying FillError Behavior
	* System.Data.Common/DbDataAdapter.cs :
		- FillTable : Move BeginLoadData, EndLoadData outside the loop. Also,
		move EndLoadData outsidet try,catch block. FillError is only for errors
		occuring during loading the data into datatable.
	* System.Data.Common/Key.cs :
		- Set Default value of RowStateFilter to (CurrentRos | OriginalRows).
		- ContainsVersion : If RowStateFilter is set to default value, return true
		for Modified Rows as they can contain Default/Original versions.
	* System.Data/DataRow.cs 
		- RejectChanges : Do not remove Row from Indexes when state is Deleted.
		- CheckChildRows : When checking for the ChildRows, use the current value
		and not the original value.


svn path=/trunk/mcs/; revision=57149
2006-02-22 10:03:03 +00:00
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 1ed319dc99 2006-02-10 Senganal T <[email protected]>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs :
		- GetSequentialColumn,BeginLoad, EndLoad,
		LoadData, SkipRow, SkipToColumnIndex
		New Methods to Support sequential loading of row data
	* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsComm.cs :
		- Skip : Changed arugment type from int to long.
	* System.Data/Test/ProviderTests/System.Data.SqlClient/SqlDataReaderTest.cs : 
		Added more tests to verify Sequential reading of row data.
	* System.Data/Test/ProviderTests/ProviderIndependant/DataReaderTest : Corrected a failing testcase.
	* System.Data/System.Data.SqlClient/SqlDataReader.cs :
		- GetBytes : Read binary/blob/clob data sequentially when
		CommandBehavior is set to SequentialAcccess
		- GetChars : Read String/clob data sequentially when CommandBehavior
		is set to SequentialAccess
	* System.Data/System.Data.SqlClient/SqlCommand.cs :
		- ExecuteReader : set SequentialAccess property on TDS
		- CloseDataReader : Reset the command behavior


svn path=/trunk/mcs/; revision=56757
2006-02-10 14:50:55 +00:00
Senganal T 28c3e33cb0 2006-01-05 Senganal T <[email protected]>
* Mono.Data.Tds/Mono.Data.Tds/TdsMetaParameter.cs: Test for DbNull when updating the scale 
	of decimal or numeric value. Fixes #77410
	Patch By Sebastien Robitaille <[email protected]>
	* System.Data/Test/ProviderTests/System.Data.SqlClient/SqlParameterTest.cs : New : Testcase for bug #77410


svn path=/trunk/mcs/; revision=56570
2006-02-05 11:47:03 +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
Senganal T 421a275d09 2006-01-17 Senganal T <[email protected]>
* Test/ProviderTests/sqlserver.config : Modified the default login and password to 'monotester'

	* Test/ProviderTests/System.Data.SqlClient/SqlCommandBuilderTest.cs : Added testcase for bug #77225

	* System.Data.SqlClient/SqlCommandBuilder.cs
		- Modified CreateNewCommand () : Clean up any existing parameter list
		before reusing the command.Fixes #77225


svn path=/trunk/mcs/; revision=55668
2006-01-17 09:07:43 +00:00
Senganal T 2270af43c7 2005-12-03 Senganal T <[email protected]>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs : 
		- FormatParameter () : For DateTime Parameters, convert the value if
		specified as a string. Fixes bug#76880
	* System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandTest.cs : 
		- Added testcase for bug #76880


svn path=/trunk/mcs/; revision=53881
2005-12-03 07:15:13 +00:00
Senganal T f443d963d3 2005-11-23 Senganal T <[email protected]>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsComm.cs : 
		- ResizeOutBuf : Modified to shrink the output buffer if
		the block size is reduced. Fixed bug #76778 	
	* System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandTest.cs : 
		- Added testcases for bug #76778


svn path=/trunk/mcs/; revision=53395
2005-11-23 14:15:11 +00:00
Senganal T a34e1cf63d 2005-10-27 Senganal T <[email protected]>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs :
		- Added a virtual method IsValidRowCount ()
		- Modified the way RecordsAffected is being counted

	* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs :
		- Overrode IsValidRowCount(), to check if the rowcount
		returned by sqlserver is valid.

	* System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandTest.cs : 
		- Added Testcase for bug #75698

	* System.Data/System.Data.SqlClient/SqlCommand.cs 
	* System.Data/System.Data.SqlClient/SqlDataReader.cs :
		-Made changes so that the number of rows affected can be got directly 
		from Tds regardsless of the type of query.Fixes bug #75698

svn path=/trunk/mcs/; revision=52268
2005-10-27 10:46:11 +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