Commit Graph
13 Commits
Author SHA1 Message Date
Veerapuram Varadhan b664161029 2010-04-21 Veerapuram Varadhan <[email protected]>
** Fixes #595918
	* Tds70.cs (WriteParameterInfo): Write updated decimal value
	according to specified scale value.

svn path=/trunk/mcs/; revision=155912
2010-04-21 20:21:41 +00:00
Gert Driesen b5fa4ed568 * SqlCommandBuilderTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlCommandTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlConnectionTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlDataAdapterTest.cs: Added tests for Update. Fixed Fill_Test_Data,
Fill_Test_PriKey and Fill_Test_FillErrorTest to pass on SQL Server 7.0.
Avoid catching and rethrowing AssertionException. Minor improvements.
* SqlParameterTest.cs: Fixes for SQL Server 7.0 / TDS 7. Updated
ZeroLengthString to pass on 1.0 profile.
* SqlTransactionTest.cs: Fixes for SQL Server 7.0 / TDS 7.

svn path=/trunk/mcs/; revision=139242
2009-08-01 13:07:28 +00:00
Gert Driesen 86f912a56e * SqlParameterTest.cs: Improved tests for bug #382589.
svn path=/trunk/mcs/; revision=139119
2009-07-30 19:56:59 +00:00
Gert Driesen 594407eb88 * SqlParameter.cs: Modified ConvertToFrameworkType to only perform
conversion if type of value is different from "system type". Make
DbTypeMapping hashtable available on 1.0 profile, and add missing
mappings. Wrap FormatException adding information on conversion
that failed.
* SqlParameterTest.cs: Added test for bug #526794, and failed
conversion from (zero-length) string to int. Changed spaces to tabs.

svn path=/trunk/mcs/; revision=139116
2009-07-30 19:42:59 +00:00
Veerapuram Varadhan 29eccae63a Fix for bug #382589 and corresponding tests
svn path=/trunk/mcs/; revision=134257
2009-05-16 01:16:05 +00:00
Gert Driesen 37d01cae34 * SqlCommandBuilderTest.cs: Improve Get*Command tests.
* SqlCommandTest.cs: Fixed warning.
* SqlConnectionTest.cs: Removed unused property.
* SqlDataReaderTest.cs: Enabled GetChars test on 1.0
profile. Added GetValues test. Added and improved
GetSqlValue tests. Improved HasRows and NextResult
tests. Added GetFieldType tests. Added big batch of
schema-related tests.
* SqlParameterTest.cs: Moved disconnected tests to
System.Data test suite. Improved test for bug
#382635. Added test for failed conversion to SQL type.


svn path=/trunk/mcs/; revision=122382
2009-01-03 23:24:47 +00:00
Gert Driesen 25c01a2252 * app-default.config: Renamed to app-net_1_1.config, and added
providerTests section.
* app-net_2.0.config: Added providerTests section and removed
mono.data section.
* Makefile: Added support for CONNECTION variable and corresponding
PROVIDER_TESTS_CONNECTION environment variable. Always rebuild test
assembly since we have no dependency check for sources in place.
Only add reference to Mono.Data on 1.1 profile. Added reference to
System.Configuration on 2.0 profile.
* sqlserver.config: Merged into app-*.config.
* odbc.config: Merged into app-*.config.
* System.Data.Connected.Tests.dll.sources: Added ConnectionConfig.cs,
EngineConfig.cs, EngineType.cs, ProviderTestsConfigurationHandler.cs
and DbDataReaderTest.cs. Removed OdbcConnectionStringBuilderTest.cs.
* ConnectionConfig.cs:  Holds information on a specific connection and
corresponding engine to test.
* EngineConfig.cs: Holds information on the capabilities and behavior
of an RDBMS engine.
* EngineType.cs: Defines different database engines supported by the
provider tests.
* ConnectionManager.cs: Use DbProviderFactory and DbConnection
on 2.0 profile. Added support for new Connection/Engine configuration.
* ProviderTestsConfigurationHandler.cs: IConfigurationSectionHandler
for the ProviderTests section.
* DataReaderTest.cs: Added tests that were previously part of
SqlClient tests but apply to all families. Improved existing
tests.
* DbDataReaderTest.cs: Added GetProviderSpecificValues error check
 tests.
* IDbCommandTest.cs: Added ExecuteNonQuery tests for empty CommandText.
Added test for bug #462947.
* OdbcCommandBuilderTest.cs: Improved GetDeleteCommand,
GetInsertCommand and GetUpdateCommand tests. Added QuotePrefix,
QuoteSuffix and QuoteIdentifier tests.
* OdbcCommandTest.cs: Improved existing tests. Added
ExecuteNonQuery and Dispose tests.
* OdbcConnectionStringBuilderTest.cs: Moved to System.Data
test suite.
* OdbcDataAdapterTest.cs: Removed extra whitespace.
* OdbcDataReaderTest.cs: Added GetBytes and GetSchemaTable
tests.
* OdbcParameterCollectionTest.cs: Improve existing tests.
* OdbcParameterTest.cs: Added tests for several data types.
* SqlCommandBuilderTest.cs: Improve Get*Command tests.
* SqlCommandTest.cs: Added test for bug #341743. Added test
for connection state after executing invalid SQL. Improved
stored procedure test to check behavior with and without
leading '@' for parameter names. Minor formatting changes.
* SqlConnectionTest.cs: Split up connection string errors
test.
* SqlDataReaderTest.cs: Improved GetInt64Test. Improved and
added GetBytes tests. Added GetSqlValues and HasRows tests.
Added GetSchemaTable test. Improved GetProviderSpecificFieldType
tests.
* SqlParameterTest.cs: Improved ParameterType test. Added
type inferrence tests.
* SqlTransactionTest.cs: Allow not working tests to run on MS.
* MySQL_5.sql: Added numeric and decimal colums with different
precision and scale. Added more rows to binary_family. Added
nchar and nvarchar columns to string_family, and added extra
data. Added time and date columns to datetime_family.
* sqlserver.sql: Added numeric and decimal colums with different
precision and scale. Added timestamp column and more rows to
binary_family. Added nchar and nvarchar columns to string_family,
and added extra data. Added sp_326182 stored procedure.
* sybase.sql: Added more rows to binary_family.

svn path=/trunk/mcs/; revision=122297
2008-12-31 15:35:07 +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 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 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
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 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