Commit Graph
20 Commits
Author SHA1 Message Date
Gert Driesen b53afee2b9 * OdbcCommandTest.cs: Added test for bug #341743.
* OdbcColumn.cs: Treat OdbcType.Numeric as decimal.
* OdbcConnection.cs: Keep (weak) list of commands to allow us to
dispose them (and free their corresponding statement handles) when
the connection is closed. Fixed bug #341743.
* OdbcCommand.cs: Add internal Unlink method that is invoked when the
OdbcConnection is disposed, and which frees the statement handle.
Modified ExecuteNonQuery helper to take CommandBehavior and rename
freeHandle argument to createReader. Added CommandBehavior argument
to ExecSQL. Added FreeStatement overload that takes an option to not
perform an unlink. Fixes bug #3417434.

svn path=/trunk/mcs/; revision=122226
2008-12-30 04:33:40 +00:00
Gert Driesen c6cdd25cf5 * OdbcParameterTest.cs: Fixed compilation on 1.0 profile.
svn path=/trunk/mcs/; revision=108973
2008-07-28 07:46:52 +00:00
Veerapuram Varadhan c54db5e65a Build break fix.
svn path=/trunk/mcs/; revision=97244
2008-03-03 21:47:19 +00:00
Veerapuram Varadhan 342fd90907 Test for Bug#332809.
svn path=/trunk/mcs/; revision=97214
2008-03-03 19:20:41 +00:00
Veerapuram Varadhan 2d021cadf4 Tests for 2.0 GetDeleteCommand, GetUpdateCommand and GetInsertCommand
APIs


svn path=/trunk/mcs/; revision=93013
2008-01-16 06:08:48 +00:00
Nagappan Alagappan f7f96709b4 2007-10-19 Nagappan A <[email protected]>
* OdbcDataReaderTest.cs (Bug332404Test): Bug 332404 - ODBC and
	  numeric columns. Thanks to Ernesto Carrea <[email protected]>
	  for the patch and the test case.
	  Fixed compilation issues in Bug332400Test method.


svn path=/trunk/mcs/; revision=87823
2007-10-19 11:50:27 +00:00
Nagappan Alagappan ab6b536454 2007-10-12 Nagappan A <[email protected]>
* OdbcDataReaderTest.cs (Bug332400Test): Bug 332400 - ODBC and
	  LONGBLOB columns. Thanks to Ernesto Carrea
	  <[email protected]> for the patch and the test case.


svn path=/trunk/mcs/; revision=87372
2007-10-12 08:29:44 +00:00
Nagappan Alagappan 9118259f09 2007-09-11 Nagappan A <[email protected]>
* OdbcCommandBuilderTest.cs (DefaultPropertiesTest): QuotePrefix
	and QuoteSuffix are not supported in 2.0 profile, so moved them
	under 1.0 profile.

	* OdbcDataReaderTest.cs (Bug82560Test): Added new test case for
	the bug # 82560. Thanks to [email protected] (amc) for providing
	this test case.
	(Bug82135Test): Fixed connection open.


svn path=/trunk/mcs/; revision=85620
2007-09-11 06:55:41 +00:00
Nagappan Alagappan 95a4616e2b 2007-07-31 Nagappan A <[email protected]>
* OdbcDataReaderTest.cs (Bug82135Test): ODBC SQLExecDirect
	error. Delete where no-data-found fails. Fixes bug # 82135.


svn path=/trunk/mcs/; revision=83056
2007-07-31 07:58:12 +00:00
Nagappan Alagappan e2624c9544 2007-07-31 Nagappan A <[email protected]>
* OdbcDataAdapterTest.cs (InsertUtf8Test): Thanks to
	[email protected] (amc) for providing this test case. Fixes bug #
	82191. ODBC command UTF8 error. SQL failed with UTF8 symbols in
	query.


svn path=/trunk/mcs/; revision=83049
2007-07-31 07:11:45 +00:00
Nagappan Alagappan 037ceabc25 2007-06-21 Nagappan A <[email protected]>
* OdbcConnectionStringBuilderTest.cs: Added base test-cases from
	Nidhi Rawal ([email protected]).

	* OdbcParameterTest.cs (ImageParameterTest, NTextParameterTest)
	(TextParameterTest): Fixed mysql syntax used.


svn path=/trunk/mcs/; revision=80463
2007-06-21 13:05:26 +00:00
Nagappan Alagappan f353114fc6 2007-06-21 Nagappan A <[email protected]>
* OdbcDataReaderTest.cs (FindZeroInToStringTest): Test for varchar
	longer than 255 characters, by Mads Bondo Dydensborg <[email protected]>.


svn path=/trunk/mcs/; revision=80428
2007-06-21 10:03:00 +00:00
Nagappan Alagappan 9bb6ac4a14 2007-06-07 Amit Biswas <[email protected]>
* OdbcDataReaderTest.cs (GetDataTypeNameTest): Test case to check the returned data type names
	(GetDataTypeNameIndexOutOfRangeExceptionTest): Test for out of range exceptions
	(GetOrdinalTest): Test case for returned ordinals
	(GetOrdinalIndexOutOfRangeExceptionTest): Testing out of range index values
	(GetFieldTypeTest): Test case for checking returned field types
	(GetFieldTypeIndexOutOfRangeExceptionTest): Test case for checking out of range index values
	(GetNameTest): Test for returned name 
	(GetNameIndexOutOfRangeExceptionTest): Test for out of range index values
		
	* OdbcParameterTest.cs (DefaultValuesTest): Test for default OdbcParameter values
	
	* OdbcParameterCollectionTest.cs (InsertTest): Test for inserting parameters in parameter collection
	(InsertNoOverwriteTest): Testing overwriting in Insert
	(InsertNullTest): Testing insert for null values
	(InsertEmptyTest): Testing insert for empty values
	(InsertAlreadyContainedParameterTest): Test for existing parameters
	(InsertArgumentGreaterThanCountTest): Testing out of range index values
	(InsertNegativeArgumentTest): Test for negative arguments
	(InsertNonOdbcParameterTest): Test to insert non Odbc Parameter values
	(AddRangeTest): Test for adding a range of values to the parameter collection	
	(AddRangeParameterAlreadyContainedTest): Test for adding already contained parameters
	(AddRangeArgumentNullExceptionTest): Test for null arguments
	(AddRangeParameterContainedInAnotherCollTest): Adding range of parameters contained in another collection
	(AddRangeMultiDimensionalArrayTest): Test for checking support of multi-dimensional arrays
	(AddRangeArrayValuesArgumentNullExceptionTest):  Test for null arguments in array values
	(ContainsTest): Test for Contains
	(ContainsNonOdbcParameterTest): Testing Contains for non-OdbcParameters
	(ContainsCaseSensitivityTest) : Test for case sensitivity
	(ContainsNotMineTest) : Testing Contains for parameters belonging to another collection
	(IndexOfCaseSensitivityTest): Testing case sensitivity for IndexOf
	(IndexOfNonOdbcParameterTest): Testing IndexOf for non-OdbcParameters
	(CopyToTest): Test for CopyTo method
	(CopyToArgumentExceptionTest):  Testing for invalid arguments
	(CopyToMultiDimensionalArrayTest): Testing CopyTo for multi-dimensional arrays
	(CopyToLowerBoundCheckTest):  Testing invalid index values
	(DuplicateParameterNameTest): Testing support for duplicate parameter names
	(RemoveTest): Test for Remove (OdbcParameter)	
	(RemoveNullTest): Testing Remove for null values
	(RemoveEmptyTest): Testing Remove for empty values
	(RemoveNonOdbcParameterTest): Testing Remove for non Odbc Parameters
	(RemoveNonExistingParameterTest): Testing Remove for non existing Parameters
	(RemoveParameterContainedInAnotherCollTest): Removing parameters contained in another collection
	(RemoveAtTest): Test for RemoveAt
	(RemoveAtOutOfRangeIndexTest): Testing RemoveAt with invalid index
	(RemoveAtNegativeIndexTest): Test for negative index
	(RemoveAtBoundaryTest): Boundary check for RemoveAt
	(AddWithValueTest): Testing AddWithValue with various parameters
	(DefaultNamesAndValuesTest): Testing default names and values of parameters


svn path=/trunk/mcs/; revision=78833
2007-06-07 13:07:56 +00:00
Nagappan Alagappan fe6e50c577 2006-12-20 Nagappan A <[email protected]>
* OdbcDataReaderTest.cs, OdbcParameterCollectionTest.cs,
	  OdbcConnectionStringBuilderTest.cs, OdbcInfoMessageEventArgsTest.cs,
	  OdbcMetaDataCollectionNamesTest.cs, OdbcMetaDataColumnNamesTest.cs:
	  Reverted the changes.


svn path=/trunk/mcs/; revision=73244
2007-02-21 10:31:43 +00:00
Nagappan Alagappan f7e2796437 2007-02-02 Amit Biswas <[email protected]>
* OdbcDataReaderTest.cs (GetDataTypeNameTest)
	(GetDataTypeNameIndexOutOfRangeExceptionTest, GetOrdinalTest)
	(GetOrdinalTest, GetFieldTypeTest, GetNameTest)
	(GetFieldTypeIndexOutOfRangeExceptionTest)
	(GetNameIndexOutOfRangeExceptionTest): Added new tests
	
	* OdbcInfoMessageEventArgsTest.cs: Created new test case file	
	Added test ToStringTest()	
	
	* OdbcMetaDataCollectionNamesTest.cs: Created new test case file	
	Added test EqualsTest()
	
	* OdbcParameterCollectionTest.cs (InsertTest, AddRangeTest)
	(ContainsTest, InsertArgumentGreaterThanCountTest, CopyToTest)
	(InsertNegetiveArgumentTest, CopyToArgumentExceptionTest)
	(AddRangeParameterAlreadyContainedTest, CopyToLowerBoundCheckTest)
	(AddRangeArgumentNullExceptionTest, AddRangeMultiDimensionalArrayTest)
	(CopyToMultiDimensionalArrayTest): Added new tests.

2007-02-02  Nidhi Rawal  <[email protected]>
	
	* OdbcConnectionStringBuilderTest.cs: Created test cases for all
	the methods that are implemented.

	* OdbcMetaDataColumnNamesTest.cs: Implemented test cases for this
	class.

	* OdbcParameterCollectionTest.cs (IndexOfTest): Implemented test
	case for the method.


svn path=/trunk/mcs/; revision=73236
2007-02-21 07:53:16 +00:00
Nagappan Alagappan 15774bb454 2006-12-20 Nagappan A <[email protected]>
* OdbcCommandBuilderTest.cs (DefaultPropertiesTest): Removed
	unnecessary code.


svn path=/trunk/mcs/; revision=69819
2006-12-20 17:18:45 +00:00
Senganal T 79f9f4547f 2005-10-14 Senganal T <[email protected]>
* Test/ProviderTests/sql/mysql.sql: Added data for testing bug #75032
	* Test/ProviderTests/System.Data.Odbc/OdbcDataReaderTest.cs: Added test for bug #75032
	* System.Data.Odbc/OdbcDataReader.cs: Added Text and NText datatypes to the list
	of datatypes checked by GetValue () method. Fixes bug #75032


svn path=/trunk/mcs/; revision=51706
2005-10-14 08:56:22 +00:00
Sureshkumar T 88683eb2b2 In System.Data.Odbc:
2005-10-08  Sureshkumar T  <[email protected]>

	* OdbcParameterTest.cs (OdbcTypeTest): Disconnected Tests for
	OdbcParameter class.

In ProviderTests/sql:
2005-10-08  Sureshkumar T  <[email protected]>

	* mysql.sql: impact from sqlserver.sql.

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

	* OdbcParameterTest.cs: Corrections.


svn path=/trunk/mcs/; revision=51461
2005-10-08 09:57:37 +00:00
Sureshkumar T 41370f5fb5 2005-09-24 Sureshkumar T <[email protected]>
* OdbcParameterTest.cs: Tests for OdbcCommand class.


svn path=/trunk/mcs/; revision=50674
2005-09-24 13:55:34 +00:00
Sureshkumar T cce8383f1e added a new framework for testing data providers using nunit and mono.data's provider
factory. Moved few stand-alone tests from Test/ to this framework.

In Test:
2005-09-01  Sureshkumar T  <[email protected]>

	* ProviderTests: Added a new framework for testing Data
	Providers. This framework is based on nunit category tests and
	also the provider factory provided by Mono.Data.

In Test/System.Data.SqlClient:
2005-09-01  Sureshkumar T  <[email protected]>

	* SqlDataReaderTest.cs: moved to ProviderTests and integrated with
	connected mode tests
	* SqlCommandTest.cs: -- do --
	* SqlConnectionTest.cs: -- do --
	* SqlTransactionTest.cs: -- do --
	* SqlDataAdapterTest.cs: -- do --

In Test/System.Data.Odbc:
2005-09-01  Sureshkumar T  <[email protected]>

	* OdbcDataAdapterTest.cs: moved to ProviderTests and integrated
	with connected more framework.
	* OdbcCommandTest.cs: -- do --.

	* OdbcParameterCollectionTest.cs: Removed ParameterLengthTrimTest
	to ProviderTests.

In Test/ProviderTests/sql:
2005-09-01  Sureshkumar T  <[email protected]>

	* SCHEMA: schema specification.

	* sqlserver.sql: sql script file to create test schema for mssql
	database. added.

	* mysql.sql: sql script file to create test schema for mysql
	database. added.

In Test/ProviderTests/System.Data.Odbc:
2005-09-01  Sureshkumar T  <[email protected]>

	* OdbcCommandBuilderTest.cs: Added tests for OdbcCommandBuilder.cs
	* OdbcCommandTest.cs: pulled from Test/System.Data.Odbc
	* OdbcDataAdapterTest.cs: pulled from Test/System.Data.Odbc
	* OdbcDataReaderTest.cs: pulled from Test/System.Data.Odbc
	* OdbcParameterCollectionTest.cs: pulled from Test/System.Data.Odbc

In Test/ProviderTests/ProviderIndependant:
2005-09-01  Sureshkumar T  <[email protected]>

	* IDbCommandTest.cs: Added. Provider independent Command tests.

	* DataReaderTest.cs: Added. Provider independent DataReader tests.

In Test/ProviderTests:
2005-09-01  Sureshkumar T  <[email protected]>

	* System.Data.Connected.Tests.dll.sources: source files.

	* app-default.config:
	* app-net_2_0.config:
	configuration files for profiles and lists the assembly
	informations for the Provider factory.

	* odbc.config:
	* sqlserver.config:
	connection string info for respective databases.

	* README: initial.

	pulled connected mode test-cases around Test/* directory into this
	new framework. This framework is based on nunit category based
	test-cases and uses Provider Factories provided in Mono.Data.dll
	to write provider independent code.

In Test/ProviderTests/Common:
2005-09-01  Sureshkumar T  <[email protected]>

	* DBHelper.cs: Added. Class to provide helper methods for other tests.

	* ConnectionManager.cs: Added. Class to manage connections

In Test/ProviderTests/System.Data.SqlClient:
2005-09-01  Sureshkumar T  <[email protected]>

	* SqlCommandBuilderTest.cs: added tests for SqlCommandBuilder
	* SqlCommandTest.cs: pulled from Test/System.Data.SqlClient
	* SqlConnectionStringBuilderTest.cs: pulled from Test/System.Data.SqlClient
	* SqlConnectionTest.cs: pulled from Test/System.Data.SqlClient
	* SqlDataAdapterTest.cs: pulled from Test/System.Data.SqlClient
	* SqlDataReaderTest.cs: pulled from Test/System.Data.SqlClient
	* SqlTransactionTest.cs: pulled from Test/System.Data.SqlClient

	Added attribute Category ("sqlserver") to all these test fixtures.



svn path=/trunk/mcs/; revision=49260
2005-09-01 11:50:04 +00:00