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
* Mono.Data.SqlExpressions: Created directory.
2006-07-18 Dean Brettle <[email protected]>
* SqlTest.cs: Added test for inserting zero-length varbinary.
svn path=/trunk/mcs/; revision=115172
exception message for invalid DateTimeMode value to match MS. Code
formatting.
* DbDataPermissionAttribute.cs: In KeyRestrictionBehavior, reuse
ExceptionHelper.CheckEnumValue.
* ExceptionHelper.cs: Use same exception message for both 1.0 and 2.0.
* Index.cs: Fixed compiler warnings. Code formatting.
* SqlCommand.cs: Use ExceptionHelper.CheckEnumValue for enum checks.
* OleDbCommand.cs: Use ExceptionHelper.CheckEnumValue for enum checks.
* DBDataPermissionAttributeTest.cs: Improved test for invalid
KeyRestrictionBehavior. Fixed line endings.
* DataColumnTest.cs: No longer derive from deprecated Assertion class.
Code formatting. Added test for DateTimeMode.
svn path=/trunk/mcs/; revision=87866
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
of clear and remove nodes.
* DbProviderFactoriesConfigurationHandler.cs: Added support for
clear node.
* DbProviderFactoriesConfigurationHandlerTest.cs: Changed test to also
verify behavior for clear and remove nodes.
svn path=/trunk/mcs/; revision=73663
pass on MS. Added NotWorking test to check whether DbProviderFactories
that are defined on machine config are available.
* ConnectionStringsSectionHandler.cs: Removed since the 2.0 config
API is in place.
* DbProviderFactoriesConfigurationHandler.cs: Fixed name of DataSet
to match MS. Removed SupportedClasses column since this is no longer
part of 2.0 profile (removed during beta). Throw
ConfigurationErrorsException for unrecognized elements. Mark methods
private, and refactor them. Added FIXMEs for missing checks for
unrecognized attributes.
* DbProviderFactories.cs: Marked constants internal. Replaced spaces
with tabs. Use ConfigurationManager.GetSection instead of deprecated
ConfigurationSettings.GetConfig.
* app_test_2.0.config: Fixed assembly qualified names of config
handler. Removed usage of ConnectionStringsSectionHandler, since
this is now handled by 2.0 config system. Spaces to tabs.
* System.Data.dll.sources: Removed ConnectionStringsSectionHandler.
svn path=/trunk/mcs/; revision=73659
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
* DbDataPermissionAttribute.cs, PermissionHelper.cs :
fixed some incompatible type of exception between 2.0 and 1.x.
* DataContainer.cs :
Wrap exceptions thrown by SetValue() within ArgumentException.
* SqlClientPermissionTest.cs, SqlClientPermissionAttributeTest.cs:
Fixed some incompatible type of exception between 2.0 and 1.1.
* OleDbPermissionTest.cs, OleDbPermissionAttributeTest.cs:
Fixed some incompatible type of exception between 2.0 and 1.1.
* OdbcPermissionTest.cs, OdbcPermissionAttributeTest.cs:
Fixed some incompatible type of exception between 2.0 and 1.1.
* DBDataPermissionTest.cs, DBDataPermissionAttributeTest.cs:
Fixed some incompatible type of exception between 2.0 and 1.1.
svn path=/trunk/mcs/; revision=38945
* DataTableMappingCollectionTest.cs,
DataColumnMappingCollectionTests.cs : Equals() and Remove() contains
invalid attempt to add one map to two collections, which is rejected
under MS.NET 1.1 sp1.
svn path=/trunk/mcs/; revision=38927
2004-11-22 Sureshkumar T <[email protected]>
* DbConnectionStringBuilder.cs: Class for helping creation of db
connection strings added.
In Test/System.Data.Common:
2004-11-22 Sureshkumar T <[email protected]>
* DbConnectionStringBuilderTest.cs: Test cases for
DbConnectionStringBuilder class. These are independant tests.
svn path=/trunk/mcs/; revision=36382