and SqlParameterTest.cs.
* DbCommandBuilder.cs (QuoteIdentifier): Throw NotSupportedException.
* DbDataAdapter.cs (Update): Add row causing concurrency violation
to DBConcurrencyException.
* OdbcCommandBuilder.cs (QuoteIdentifier): Escape QuoteSuffix
character(s) in unquoted identifier.
* SqlCommandBuilder.cs: Added missing checks for QuotePrefix and
QuoteSuffix on 2.0 profile, and return a zero-length string if
not set (or set to null) on 1.0 profile. Do not allow the value
of CatalogSeparator and SchemaSeparator to be changed from '.'.
Modified generated SQL to match MS. Added implementation for
QuoteIdenfifier. Modified parameters to match MS.
* SqlParameter.cs (SqlValue): Keep Value in sync.
* DbCommandBuilderTest.cs: Added test for QuoteIdentifier.
* OdbcCommandBuilderTest.cs: Enabled test for QuoteIdentifier.
* SqlCommandBuilderTest.cs: Added tests for CatalogLocation,
CatalogSeparator, ConflictOption, QuoteIdentifier, QuotePrefix,
QuoteSuffix and SchemaSeparator.
* SqlParameterTest.cs: Moved existing tests from ProviderTests
to increase their visibility. Added tests for type inference.
svn path=/trunk/mcs/; revision=122361
internal so we can use it on the 1.0 profile (internally). Implemented
RowCount.
* System.Data_test.dll.sources: Added DBConcurrencyExceptionTest.cs.
* DBConcurrencyExceptionTest.cs: Added .ctor and Row(Count) tests.
svn path=/trunk/mcs/; revision=122263
QuoteSuffix are not set (or are set to null). Changing QuotePrefix or
QuoteSuffix after a command has been generated should result in an
InvalidOperationException.
* DbConnectionStringBuilder.cs: Added support for ODBC rules. Major
rewrite fixing many compatibility issues, and improving support for
connectionstring formats/characters.
* System.Data_test.dll.sources: Added OdbcCommandBuilderTest.cs,
OdbcConnectionStringBuilderTest.cs and DbCommandBuilderTest.cs.
* libodbc.cs: Add IdentifierQuoteChar to OdbcInfo.
* OdbcCommandBuilder.cs: Return a zero-length string when QuotePrefix
or QuoteSuffix are not set (or are set to null). Changing QuotePrefix
or QuoteSuffix after a command has been generated should result in an
InvalidOperationException. Implemented support for obtaining
character(s) for quoting identifiers from specified connection.
Modified generated SQL to match MS.
* OdbcConnectionStringBuilder.cs: Improved special casing of Driver
and Dsn keywords. Re-use implemenation of DbConnectionStringBuilder.
Improved argument checks to match MS.
* DbCommandBuilderTest.cs: Added tests for QuotePrefix and
QuoteSuffix.
* DbConnectionStringBuilderTest.cs: Added tests for both odbc and
non-odbc rules.
* OdbcCommandBuilderTest.cs: Added tests for QuotePrefix and
QuoteSuffix. Added tests for QuoteIdentifier (some still marked
NotWorking).
* OdbcConnectionStringBuilderTest.cs: Moved from ProviderTests.
Added and improved tests.
svn path=/trunk/mcs/; revision=122225
* System.Data.dll.sources: Add new OleDbMetaDataCollectionNames.cs
* System.Data_test.dll.sources: Add the new OdbcMetaDataColumnNamesTest,
OleDbMetaDataCollectionNamesTest and SqlClientMetaDataCollectionNamesTest.
In class/System.Data/System.Data.Odbc:
* OdbcMetaDataCollectionNames.cs: Set the field values.
In class/System.Data/System.Data.OleDb:
* OleDbMetaDataCollectionNames.cs: New.
In class/System.Data/System.Data.SqlClient:
* SqlClientMetaDataCollectionNames.cs: Set the field values.
In class/System.Data/Test/System.Data.Odbc:
* OdbcMetaDataCollectionNamesTest.cs: New.
In class/System.Data/Test/System.Data.OleDb:
* OleDbMetaDataCollectionNamesTest.cs: New.
In class/System.Data/Test/System.Data.SqlClient:
* SqlClientMetaDataCollectionNamesTest.cs: New.
svn path=/trunk/mcs/; revision=97175
* DataSetTest.cs : added test for r89307 fix (it is for XmlSerializer
but needs to be in sys.data).
* MonkeyDataSet.cs : test support classes (generated by xsd).
* System.Data_test.dll.sources: added MonkeyDataSet.cs, test helper.
svn path=/trunk/mcs/; revision=89596
OdbcCommandTest.cs, OdbcConnectionTest.cs, OdbcDataAdapterTest.cs,
OleDbCommandTest.cs, OleDbConnectionTest.cs, OleDbDataAdapterTest.cs,
SqlDataAdapterTest.cs.
* DbDataAdapter.cs: Implemented UpdateBatchSize setter.
* DataAdapter.cs: In FillLoadOption setter, ensure value is valid.
Modified MissingMappingAction and MissingSchemaAction setters to use
ExceptionHelper.CheckEnumValue to validate value. Spaces to tabs and
code formatting.
* ExceptionHelper.cs: Added CheckEnumValue method and modified
InvalidEnumValueException method to return AORE on 2.0 profile. Added
ConnectionClosed method that returns an InvalidOperationException.
* OleDbDataAdapter.cs: In default ctor, set SelectCommand to null.
Only initialize SelectCommand in ctors. Use direct assignment in
IDbDataAdapter implementation.
* OleDbCommand.cs: Added constant for default CommandTimeout, instead
of using a magic number. Avoid unnecessary initialization. Fixed
default value for DesignTimeVisible. Return zero-length string if
CommandText is null. Added implementation for UpdatedRowSource.
* OleDbConnection.cs: Moved initialization of gda to Open ().
Avoid unnecessary initialization. Return zero-length string if
ConnectionString is null. If getters to Database, DataSource and
Provider return zero-length string if the connection is closed.
In ServerVersion, BeginTransaction and GetSchema, throw an
InvalidOperationException if connection is closed.
* OdbcCommand.cs: Added constant for default CommandTimeout, instead
of using a magic number. Avoid unnecessary initialization. Fixed
default value for DesignTimeVisible. Return zero-length string if
CommandText is null. Spaces to tabs and code formatting.
* OdbcError.cs: Fixed typo in exception message.
* OdbcConnection.cs: Return zero-length string if ConnectionString is
null. In getters for Database, DataSource and Driver return a
zero-length string if connection is closed. In BeginTransaction and
GetSchema throw InvalidOperationException if connection is closed.
Added override for GetSchema (string, string []). Use string.Empty
instead of "".
* OdbcDataAdapter.cs: Avoid unnecessary initializations. Use direct
assignment in IDbDataAdapter implementation. In default ctor, set
SelectCommand to null.
* SqlCommand.cs: Added constant for default CommandTimeout, instead
of using a magic number. Avoid unnecessary initialization. Fixed
default value for DesignTimeVisible. Return zero-length string if
CommandText is null. Use ExceptionHelper.InvalidEnumValueException
to avoid code duplication. Spaces to tabs and code formatting.
* SqlConnection.cs: Use different default package size on 2.0 profile.
Added constants for default values, instead of using magic numbers.
Avoid unnecessary initialization. In PacketSize, return default or
configured packet size when connection is not open. Use
ExceptionHelper.ConnectionClosed instead of local method. Removed
use of some hardcoded values in SetDefaultConnectionParameters, and
use Environment.MachineName as default WorkstationId instead of
DNS host name. Code formatting.
* SqlDataAdapter.cs: In default ctor, set SelectCommand to null.
Avoid unnecessary initializations. Use direct assignment in
IDbDataAdapter implementation. Fixed exception message for negative
UpdateBatchSize. In Dispose override, make sure to invoke base
method.
* DbDataAdapterTest.cs: Added test for UpdateBatchSize.
* DataAdapterTest.cs: Added tests for AcceptChangesDuringFile,
AcceptChangesDuringUpdate, ContinueUpdateOnError, FillLoadOption,
MissingMappingAction, MissingSchemaAction and
ReturnProviderSpecificTypes.
* OdbcDataAdapterTest.cs: Added tests for ctors, DeleteCommand,
InsertCommand, SelectCommand, UpdateCommand and Dispose.
* OdbcDataReaderTest.cs: fixed line endings.
* OdbcCommandTest.cs: Added tests for ctors and CommantText.
* OdbcConnectionTest.cs: Removed original test that relied on MySQL.
Added ctor tests. Added tests for BeginTransaction, GetSchema and
ServerVersion with connection that is closed.
* OleDbDataAdapterTest.cs: Added tests for ctors, DeleteCommand,
InsertCommand, SelectCommand, UpdateCommand and Dispose.
* OleDbCommandTest.cs: Added tests for ctors and CommandText.
* OleDbConnectionTest.cs: Added tests for ctors and ConnectionString.
Added tests for BeginTransaction, GetSchema and ServerVersion with connection that is closed.
* SqlCommandTest.cs: Added tests for ctors and CommantText.
* SqlConnectionTest.cs: Added tests for ctors, ConnectionString and
ServerVersion.
* SqlDataAdapterTest.cs: Added tests for ctors, DeleteCommand,
InsertCommand, SelectCommand, UpdateCommand, UpdateBatchSize and
Dispose.
svn path=/trunk/mcs/; revision=87859
* System.Data_test.dll.sources: Added
System.Data.SqlTypes/SqlBytesTest.cs,
System.Data.SqlTypes/SqlCharsTest.cs.
* System.Data.dll.sources: Removed
System.Data.SqlTypes/SqlDate.cs, System.Data.SqlTypes/SqlTime.cs,
System.Data.SqlTypes/SqlUtcDateTime.cs,
System.Data.SqlTypes/SqlXmlReader.cs as they are not part of 2.0
profile.
svn path=/trunk/mcs/; revision=72541
* Test/System.Data/DataViewTest2.cs :
- Tests for ToTable overloads
- Test for Equals method
- Tests to check for the Sort, RowFilter values when
DataView is created and when Table is set.
* Test/System.Data/DataViewTest_IBindingList.cs :
- Ensure tests do not depend on the order of
execution.
* Test/System.Data/DataViewTest_IBindingListView.cs : New
- Tests for IBindingListView interface methods
* System.Data.Common/Index.cs :
- GetAllRows : Added. Returns all the rows in the current
index.
- GetDistinctRows :Added. Returns all the distinct rows (based
in Key Columns) in the index.
* System.Data.dll.sources:
- Added to build :
Test/System.Data/DataViewTest_IBindingListView.cs
* System.Data/DataView.cs :
- ToTable : Implemented all the overloads
- Equals : Implemented
- IBindingListView : Implemented the interface
svn path=/trunk/mcs/; revision=62669
2005-10-11 Sureshkumar T <[email protected]>
* DataViewTest_IBindingList.cs: Added test cases for IBindingList
implementation by DataView. This is used by DataGrid control.
In System.Data:
2005-10-11 Sureshkumar T <[email protected]>
* DataView.cs (IBindingList): Implemented methods for IBindingList interface.
svn path=/trunk/mcs/; revision=51574
* System.Data.dll.sources: added
System.Data.Odbc/NativeBuffer.cs. native buffer pointer.
In System.Data.Odbc:
* OdbcParameter.cs: re-implemented the native buffer handling and
odbc type handling.
* OdbcCommand.cs (BindParameters): Copy the parameter Value after
binding.
* NativeBuffer.cs: A native buffer class to hold pointer to native
memory.
* OdbcTypeMap.cs (OdbcTypeMap): structure to hold different odbc
types and the default mapping.
* OdbcTypeConverter.cs: Simplified mapping between different odbc
types using switch-case.
* libodbc.cs (SQLBindParameter): use only one entry point and use
IntPtr instead of ref.
svn path=/trunk/mcs/; revision=51463
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
* 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
* 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-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-04 Sureshkumar T <[email protected]>
* DbConnectionStringBuilderTest.cs: few more tests ignored for now
because of gmcs incompatiability with csc. generic types are not
being able to be assigned to non-generic types though implements
non-generic interface.
In .:
2005-04-04 Sureshkumar T <[email protected]>
* System.Data_test.dll.sources: Added
Test/System.Data.Common/DbConnectionStringBuilderTest.cs
* System.Data.dll.sources: Added
System.Data.Common/DbConnectionStringBuilder.cs
svn path=/trunk/mcs/; revision=42506
* ConnectionStringsSectionTest.cs: Added file. Tests for
System.Configuration.ConnectionStringsSection class. This is used
for managing connection strings information for provider factory.
2005-02-22 Sureshkumar T <[email protected]>
In .:
* System.Data_test.dll.sources: Added
System.Data.Common/ConnectionStringsSectionTest.cs
2005-02-22 Sureshkumar T <[email protected]>
svn path=/trunk/mcs/; revision=41040
2005-02-22 Sureshkumar T <[email protected]>
* Makefile: added dependancy for test-lib to create
$(test-lib).config. These configuration entries are used currently
by Test/System.Data.Common/DbProviderFactories-
ConigurationHalderTest.cs tests. Future tests can also add
configuration information in configuration file
app_test.2.0.config. This is for 2.0 profile only.
* System.Data_test.dll.sources:
Added System.Data.Common/DbProviderFactoriesConfigurationHandlerTest.cs.
* System.Data.dll.sources:
Added System.Data.SqlClient/SqlClientFactory.cs
Added System.Data.SqlClient/SqlDataSourceEnumerator.cs
In Test/System.Data.Common:
2005-02-22 Sureshkumar T <[email protected]>
* DbProviderFactoriesConfigurationHandlerTest.cs: Tests for
DbProviderFactoriesConfigurationHandler class.
svn path=/trunk/mcs/; revision=41029