Commit Graph
151 Commits
Author SHA1 Message Date
Veerapuram Varadhan dfc8c26972 ** Fixes #340451.
svn path=/trunk/mcs/; revision=97218
2008-03-03 19:34:36 +00:00
Veerapuram Varadhan 8cf609a09a Fixes from Bug#332809. Patch provided by Ernesto Carrea.
svn path=/trunk/mcs/; revision=97212
2008-03-03 19:18:20 +00:00
Ankit Jain 8a986b5f97 In class/System.Data:
* 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
2008-03-03 08:04:56 +00:00
Veerapuram Varadhan 53fe594fd2 **Fixes BNC#364432. Handle DBNull cases.
svn path=/trunk/mcs/; revision=96590
2008-02-25 21:06:22 +00:00
Veerapuram Varadhan b2a5186c92 Map OdbcType.Time appropriately. Fixes BNC#364426.
svn path=/trunk/mcs/; revision=96570
2008-02-25 16:22:36 +00:00
Veerapuram Varadhan bf9c720f7c svn path=/trunk/mcs/; revision=96233 2008-02-20 11:02:56 +00:00
Veerapuram Varadhan 3e74a1fb71 Missing 2.0 APIs
svn path=/trunk/mcs/; revision=93012
2008-01-16 06:03:17 +00:00
Gert Driesen 68ce3413b5 * OdbcDataReader.cs: Code formatting, spaces to tabs.
svn path=/trunk/mcs/; revision=88350
2007-10-28 18:55:50 +00:00
Gert Driesen 3930b4b9cf * System.Data_test.dll.sources: Added DbDataAdapterTest.cs,
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
2007-10-20 23:16:52 +00:00
Gert Driesen 843e73dcd2 * OdbcTransaction.cs: Clear connection in Commit and Rollback.
In IsolationLevel, throw IOE if transaction is no longer open.
* SqlTransaction.cs: Clear connection in commit. In IsolationLevel,
throw IOE if transaction is no longer open.
* OleDbTransaction.cs: Clear connection in Commit and Rollback. In
IsolationLevel and Begin overloads, throw IOE if transaction is no
longer open.

svn path=/trunk/mcs/; revision=87836
2007-10-19 17:12:55 +00:00
Gert Driesen e2681602c2 * DbTransaction.cs: Do not perform a rollback in Dispose (bool).
Leaves it up to deriving classes to override Dispose (bool) and
perform a rollback if necessary. Fixes bug #325397. Code formatting.
* ExceptionHelper.cs: Added TransactionNotUsable method that constructs
an InvalidOperationException to be thrown by IDbTransaction
implementations when the transaction is no longer open.
* OdbcTransaction.cs: Keep state of the transaction, and update it
when performing commit or rollback. In Dispose (bool), only perform
a rollback if transaction was not committed or rollback before.
In Commit and Rollback, throw an InvalidOperationException if
transaction is no longer open.
* SqlTransaction.cs: Avoid unnecessary initialization. Remove
isRolledBack since its essentially the same as isOpen. Use
ExceptionHelper.TransactionNotUsable instead of duplicating code.
On 2.0 profile, ignore call to Rollback when transaction was already
disposed.
* OleDbTransaction.cs: Keep track of whether transaction is open and
whether it's disposed. In Commit an Rollback, throw an IOE if the
transaction is no longer open. In Dispose (bool), perform a rollback
if the transaction is still open.

svn path=/trunk/mcs/; revision=87835
2007-10-19 16:04:39 +00:00
Gert Driesen 0f1a343ecd * OdbcTransaction.cs: Use OdbcIsolationLevel enum value instead of
magic numbers. For Snapshot isolation level, the attribute
SQL_COPT_SS_TXN_ISOLATION must be used instead. When isolation level
is Unspecified, then do not modify the isolation level at all and
lazy initlization the IsolationLevel property. Modified exceptions
for invalid / not supported isolation levels to match MS.
* libodbc.cs: Added attribute for changing SQL Server specific
connection option. Added enum for ODBC isolation level options.
Added SQLGetConnectAttr method.

svn path=/trunk/mcs/; revision=87827
2007-10-19 13:36:40 +00:00
Gert Driesen d9395404ce * libodbc.cs: Spaces to tabs. Code formatting.
* OdbcConnection.cs: Spaces to tabs. Code formatting.
* OdbcTransaction.cs: Code formatting.

svn path=/trunk/mcs/; revision=87815
2007-10-19 09:06:25 +00:00
Nagappan Alagappan 708d62be0a * OdbcCommandBuilder.cs, OdbcParameterCollection.cs: Code alignment.
* OdbcDataReader.cs: Fixes numeric columns, bug # 332404.

svn path=/trunk/mcs/; revision=87810
2007-10-19 05:24:09 +00:00
Nagappan Alagappan 9d903947de * OdbcCommand.cs (Clone): Implemented new method. Code alignment.
svn path=/trunk/mcs/; revision=87809
2007-10-19 05:05:16 +00:00
Nagappan Alagappan fa0321d3ed * OdbcDataReader.cs: Bug 332400 - ODBC and LONGBLOB columns. Thanks to
Ernesto Carrea <[email protected]> for the patch and the test
  case.

svn path=/trunk/mcs/; revision=87371
2007-10-12 08:24:22 +00:00
Marek Safar 5635e31c98 2007-10-08 Marek Safar <[email protected]>
* OdbcParameterCollection.cs (SetParameter): Fixed missing cast.
	

svn path=/trunk/mcs/; revision=87091
2007-10-08 13:20:07 +00:00
Nagappan Alagappan 5d2e468be3 * OdbcTransaction.cs: AutoCommit and BeginTransaction fix. Thanks to
Mads Bondo Dydensborg <[email protected]> and Amc <[email protected]> for
  providing this patch.

svn path=/trunk/mcs/; revision=86473
2007-09-27 10:31:33 +00:00
Nagappan Alagappan cc7d5ea7c9 2007-09-25 Nagappan A <[email protected]>
* OdbcParameter.cs (ResetOdbcType, ResetDbType): Implemented
	missing methods. 2.0 attribute fixes.

	* OdbcInfoMessageEventArgs.cs (Message, Errors, ToString):
	Implemented missing properties and methods. 2.0 attribute fixes.

	* OdbcConnection.cs (InfoMessage): Added public event and relevant
	private APIs. 2.0 attribute fixes.

	* OdbcConnectionStringBuilder.cs: 2.0 attribute fixes.

	* OdbcParameterCollection.cs (GetParameter, SetParameter):
	Implemented missing 2.0 APIs and 2.0 attribute fixes.

	* OdbcDataReader.cs (finalize): 2.0 compatibility fixes.

	* OdbcPermission.cs (Add): 2.0 compatibility fixes.

	* OdbcCommandBuilder.cs: 2.0 attribute fixes.

	* OdbcRowUpdatingEventArgs.cs (BaseCommand): Added 2.0 property.

	* OdbcCommand.cs: 2.0 attribute fixes.

	* OdbcException.cs: 2.0 attribute fixes.


svn path=/trunk/mcs/; revision=86300
2007-09-25 07:15:03 +00:00
Nagappan Alagappan 83bafa7643 2007-09-11 AMC <[email protected]>
* OdbcDataReader.cs (GetPrimaryKeys): ODBC data reader can now
	properly handle "no-primary-keys" situation. Fixes bug # 82560.

2007-09-11  Nagappan A  <[email protected]>

	* OdbcConnectionStringBuilder.cs: Fixed Dsn DisplayName attribute.


svn path=/trunk/mcs/; revision=85619
2007-09-11 06:36:17 +00:00
Nagappan Alagappan 384f7840ee 2007-08-13 Nagappan A <[email protected]>
* OdbcMetaDataColumnNames.cs: Added new class.

	* OdbcMetaDataCollectionNames.cs: Added new class.

	* OdbcParameter.cs: 2.0 compatibility changes.

	* OdbcFactory.cs (CreateConnectionStringBuilder)
	(CreatePermission): Implemented new methods.

	* OdbcInfoMessageEventHandler.cs: 2.0 compatibility changes.

	* OdbcConnection.cs: 2.0 compatibility changes.
	(GetSchema): Added new overloaded methods.

	* OdbcConnectionStringBuilder.cs (Driver, Dsn): Added attributes
	as per 2.0 requirement.

	* OdbcDataReader.cs: 2.0 compatibility changes.

	* OdbcCommandBuilder.cs: 2.0 compatibility changes.

	* OdbcCommand.cs: 2.0 compatibility changes.

	* OdbcErrorCollection.cs (CopyTo): Implemented new overloaded
	method.

	* OdbcException.cs: In 2.0 DbException should be inherited instead
	of SystemException.


svn path=/trunk/mcs/; revision=83937
2007-08-13 09:26:24 +00:00
Miguel de Icaza fd0e544a35 Remove redundant
svn path=/trunk/mcs/; revision=83917
2007-08-12 16:00:26 +00:00
Nagappan Alagappan 5264613b6d 2007-07-31 Nagappan A <[email protected]>
* OdbcCommand.cs (ExecSQL): Thanks to [email protected] (amc) for
	  providing the patch, Fixes bug # 82135. ODBC SQLExecDirect
	  error. Delete where no-data-found fails.


svn path=/trunk/mcs/; revision=83057
2007-07-31 08:00:09 +00:00
Nagappan Alagappan fdffb9c8c5 2007-07-31 Nagappan A <[email protected]>
* OdbcCommandBuilder.cs: Removed bogus TODO.
	  Fixed 2.0 missing attributes

	* libodbc.cs: Added new libodbc global constant SQL_NTS.

	* OdbcCommand.cs (ExecSQL): Thanks to [email protected] (amc) for
	  providing the patch, Fixes bug # 82191. ODBC command UTF8
	  error. SQL failed with UTF8 symbols in query.
	  Removed bogus TODO.
	  Fixed 2.0 missing attributes


svn path=/trunk/mcs/; revision=83051
2007-07-31 07:17:44 +00:00
Nagappan Alagappan 5499016be4 2007-07-22 Nagappan A <[email protected]>
* OdbcDataAdapter.cs: Fixed compilation warning.

	* OdbcTransaction.cs: Fixed compilation warning.


svn path=/trunk/mcs/; revision=82424
2007-07-22 06:48:16 +00:00
Gert Driesen ff39eb1234 ChangeLog for revision 81109.
svn path=/trunk/mcs/; revision=81110
2007-06-30 14:48:31 +00:00
Gert Driesen b2274e3e1d * OdbcDataAdapter.cs: Only override Dispose on 1.0 profile. Added
stub for ICloneable.Clone.
* OdbcTransaction.cs: Dispose should be explicit interface impl., not
public. Connection is also public on 2.0 profile.

svn path=/trunk/mcs/; revision=81109
2007-06-30 14:46:32 +00:00
Nagappan Alagappan d29dca3286 2007-06-21 Nagappan A <[email protected]>
* OdbcConnectionStringBuilder.cs: Added new file with the basic
	work of Nidhi Rawal ([email protected]).


svn path=/trunk/mcs/; revision=80459
2007-06-21 13:00:13 +00:00
Nagappan Alagappan 46f26bdc82 2007-06-21 Nagappan A <[email protected]>
* OdbcDataReader.cs (GetValue): Patch for varchar longer than 255
	characters, by Mads Bondo Dydensborg <[email protected]>.

	* OdbcConnection.cs: Fixed compiler warning.


svn path=/trunk/mcs/; revision=80429
2007-06-21 10:04:59 +00:00
Nagappan Alagappan b2b1cb0756 2007-06-06 Amit Biswas <[email protected]>
* OdbcParameter.cs (OdbcParameter ()): Changed default values in the constructor
	
	* OdbcParameterCollection.cs (AddRange (Array values)): Implemented missing method
	(Add): Corrected bug related to default parameter names
	(Insert): Added check for valid index values
	(Contains): Corrected bug for case sensitivity
	(IndexOf): Corrected bug for case sensitivity
	(IndexOf): Corrected bug in comparing parameter names
	(Remove): Added check for non existing parameters
	(AddRange (OdbcParameter): Implemented missing method
	(AddRange (Array values): Implemented missing method
	(Insert (int index, OdbcParameter value)): Implemented missing method
	(Insert (int index, object value)): Implemented missing method
	(AddWithValue (string parameterName, Object value)): Implemented missing method
	(Remove (OdbcParameter value)): Implemented missing method
	(Contains (OdbcParameter value)): Implemented missing method
	(CopyTo (OdbcParameter [] array, int index)): Implemented missing method


svn path=/trunk/mcs/; revision=78835
2007-06-07 13:10:30 +00:00
Nagappan Alagappan 1b85515d3f 2007-05-30 Nagappan A <[email protected]>
* OdbcDataReader.cs (GetValue): Adds nano seconds as tickcs from
	the received buffer.


svn path=/trunk/mcs/; revision=78175
2007-05-30 08:56:09 +00:00
Nagappan Alagappan 10d729d210 2007-05-25 Nagappan A <[email protected]>
* OdbcDataReader.cs (GetValue): Sybase returns the fraction values
	in nano seconds, but DateTime expects the value in milliseconds,
	so the conversion.


svn path=/trunk/mcs/; revision=77937
2007-05-25 09:14:01 +00:00
Nagappan Alagappan 759558aaf9 2007-05-04 Nagappan A <[email protected]>
* libodbc.cs: Wrong ODBC API definitions (using ints instead of
	shorts) - Fixes bug 81306. Thanks to [email protected] and
	[email protected].

	* OdbcDataReader.cs: Wrong ODBC API definitions (using ints
	instead of shorts) - Fixes bug 81306. Thanks to
	[email protected] and [email protected].


svn path=/trunk/mcs/; revision=76657
2007-05-04 04:25:27 +00:00
Nagappan Alagappan b43e30daeb 2007-02-09 Nagappan A <[email protected]>
* OdbcDataReader.cs, libodbc.cs, OdbcParameterCollection.cs,
	  OdbcConnectionStringBuilder.cs, OdbcFactory.cs, OdbcInfoMessageEventArgs.cs,
	  OdbcMetaDataCollectionNames.cs, OdbcMetaDataColumnNames.cs: Reverted the patches.


svn path=/trunk/mcs/; revision=73243
2007-02-21 10:28:03 +00:00
Nagappan Alagappan ac33707158 2007-02-21 Nagappan A <[email protected]>
* System.Data_test.dll.sources: Added
	System.Data.OleDb/OleDbParameterCollectionTest.cs

	* System.Data.dll.sources: Added
	System.Data.Odbc/OdbcConnectionStringBuilder.cs,
	System.Data.Odbc/OdbcMetaDataCollectionNames.cs,
	System.Data.Odbc/OdbcMetaDataColumnNames.cs


svn path=/trunk/mcs/; revision=73239
2007-02-21 09:26:46 +00:00
Nagappan Alagappan f4eba8efe6 2007-02-02 Amit Biswas <[email protected]>
* OdbcInfoMessageEventArgs.cs (ToString): Implemented new method.

	* OdbcParameterCollection.cs (AddRange, Insert, AddWithValue)
	(Remove, Contains, CopyTo): Implemented missing .NET 2.0 methods.

	* OdbcMetaDataCollectionNames.cs: Added new class for .NET 2.0
	profile.

	* OdbcMetaDataCollectionNames.cs (Equals): Implemented overloads
	methods.

2007-02-02  Nidhi Rawal  <[email protected]>

	* libodbc.cs: Imported a dll file for char datatype.
	
	* OdbcDataReader.cs (GetChar): Implemented the method and wrote
	a switch case for char data type in GetValue method..
	(GetDecimal): Implemented the method.
	
	* OdbcConnectionStringBuilder.cs: Written the new class.

	* OdbcMetaDataColumnNames.cs: Written the new class.

	* OdbcFactory.cs (CreateConnectionStringBuilder): Implemented the method.

	* OdbcParameterCollection.cs (IndexOf): Implemented the method.


svn path=/trunk/mcs/; revision=73235
2007-02-21 07:52:20 +00:00
Nagappan Alagappan 84aa03185d 2007-02-09 Nagappan A <[email protected]>
* OdbcDataReader.cs (GetDecimal): Implemented new API.


svn path=/trunk/mcs/; revision=72536
2007-02-09 13:49:06 +00:00
Nagappan Alagappan d4228a7476 2007-01-08 Nagappan A <[email protected]>
* OdbcFactory.cs: Fixed compilation warning.

	* OdbcCategoryAttribute.cs (Category): Implemented missing
	property.

	* OdbcParameterCollection.cs: Fixed compilation warning.

	* OdbcCommandBuilder.cs (GetInsertCommand, GetUpdateCommand)
	(GetDeleteCommand): Implemented overloaded method.

	* OdbcTransaction.cs: Modified partial content of DOS format file
	to UNIX format.


svn path=/trunk/mcs/; revision=70618
2007-01-08 05:54:18 +00:00
Senganal T dbcfcb27fe 2006-07-13 Senganal T <[email protected]>
* Test/System.Data.Common/DBDataPermissionTest.cs : Removed invalid tests

	* System.Data.Common/SchemaInfo.cs DbDataAdapter.cs DbConnectionOptions.cs DbParameter.cs 
	DbMetaDataColumnNames.cs DbTransaction.cs DataTableMapping.cs DataAdapter.cs 
	FieldNameLookup.cs DbDataRecord.cs DataColumnMappingCollection.cs DbCommand.cs 
	DbDataPermission.cs DbProviderFactory.cs DbCommandBuilder.cs DbConnectionString.cs 
	RowUpdatedEventArgs.cs DbDataReader.cs DbConnectionStringBuilder.cs DbConnection.cs 
	DataTableMappingCollection.cs :
		2.0 Api fixes

	* System.Data.SqlClient/SqlClientFactory.cs SqlCommand.cs SqlConnectionFactory.cs 
	SqlClientPermission.cs SqlParameterCollection.cs SqlDataReader.cs 
	SqlConnection.cs SqlParameter.cs SqlTransaction.cs :
		2.0 Api fixes

	* System.Data.Odbc/OdbcTransaction.cs OdbcCommand.cs OdbcConnectionFactory.cs 
	OdbcPermission.cs OdbcDataReader.cs OdbcParameterCollection.cs 
	OdbcConnection.cs OdbcFactory.cs OdbcParameter.cs :
		2.0 Api fixes

	* System.Data.OleDb/OleDbCommand : 2.0 Api fixes

	* System.Data.dll.sources: 
		- Added to build :
			System.Data.Common/DbMetaDataColumnNames.cs
		- Removed from build :
			System.Data.Common/DbCommandOptionalFeatures.cs
			System.Data.Common/DbCommandSet.cs
			System.Data.Common/DbProviderSupportedClasses.cs
			System.Data.Common/SchemaLocation.cs
			System.Data.Odbc/OdbcConnectionFactory.cs
			System.Data.SqlClient/SqlConnectionFactory.cs
			System.Data.ProviderBase/DbCommandBase.cs
			System.Data.ProviderBase/DbConnectionBase.cs
			System.Data.ProviderBase/DbConnectionFactory.cs
			System.Data.ProviderBase/DbConnectionInternal.cs
			System.Data.ProviderBase/DbConnectionPoolCounters.cs
			System.Data.ProviderBase/DbConnectionPoolOptions.cs
			System.Data.ProviderBase/DbDataReaderBase.cs
			System.Data.ProviderBase/DbMetaDataFactory.cs
			System.Data.ProviderBase/DbParameterBase.cs
			System.Data.ProviderBase/DbParameterCollectionBase.cs
			System.Data.ProviderBase/DbReferenceCollection.cs

	* Makefile : Add System.Transactions library reference to net_2_0 PROFILE


svn path=/trunk/mcs/; revision=62561
2006-07-13 14:19:17 +00:00
Gert Driesen 0a3f08261d * SqlConnection.cs: Removed extra destructor, as destructor on
System.ComponentModel.Component already calls Dispose.
* SqlParameter.cs: Removed explicit interface implementation of
IDataParameter.ParameterName.
* OdbcErrorCollection.cs: Removed explicit interface implementation
of IEnumerable.GetEnumerator ().
* OdbcCommand.cs: Removed destructor as the destructor in
System.ComponentModel.Component already calls the Dispose method.
Removed explicit interface implemenation of members that are
implement by public members.
* OdbcDataReader.cs: Removed explicit interface implemenation of
IDataRecord.GetData.
* OleDbErrorCollection.cs: Removed explicit interface implementation
of IEnumerable.GetEnumerator ().
* OleDbParameterCollection.cs: Removed explicit interface
implementation members that are already implementation by public
members.
* DataTable.cs: Renamed initInProgress to fInitInProgress. BeginInit
and EndInit must only be virtual in 2.0 profile. Set eol-style to CRLF.

svn path=/trunk/mcs/; revision=61328
2006-05-31 13:55:23 +00:00
Senganal T 5096077c0e 2006-05-24 Senganal T <[email protected]>
* OdbcColumn.cs :
		- Added IsVariableSizeType : Handle types with variable datasize
	* OdbcTypeConverter.cs : map LongVarBinary to Image
	* OdbcDataReader.cs :
		- GetValue () : Handle Text,Image datatypes differently. Only allocate
		storage for the data contained and not for MaxLength. Fixes #78234


svn path=/trunk/mcs/; revision=61056
2006-05-24 14:07:53 +00:00
Senganal T 3afc3ef39e 2006-05-09 Senganal T <[email protected]>
* System.Data.Odbc/OdbcConnection.cs : Implemented ChangeDatabase Method
	* System.Data.Odbc/libodbc.cs : Added value for CurrentCatalog in OdbcConnectionAttribute 


svn path=/trunk/mcs/; revision=60432
2006-05-09 09:12:09 +00:00
Chris Toshok fc2eed47bc 2006-02-17 Chris Toshok <[email protected]>
* OdbcDataReader.cs: remove VisibleFieldCount property.


svn path=/trunk/mcs/; revision=56979
2006-02-17 16:45:10 +00:00
Senganal T ec248e159f 2005-11-21 Senganal T <[email protected]>
* System/System.Net/Dns.cs : added GetHostEntry() method for 2.0 api conformance
	* System.Data/System.Data.ProviderBase/DbParameterCollectionBase.cs 
		- Marked CheckName method as virtual
	* System.Data/System.Data.ProviderBase/DbParameterBase.cs
		- Marked Offset property and CopyTo method as virtual
	* System.Data/System.Data.Common/DbMetaDataCollectionNames.cs (new file)
		- Added DbMetaDataCollectionNames Enumeration 
	* System.Data/System.Data.dll.sources: 
		- Added System.Data/ConflictOption.cs : Source file for ConflictOption
			enumeration.
	* System.Data/System.Data/ConflictOption.cs (new file)
		- Added ConflictOption Enumeration 
	* System.Data/System.Data/DataTableReader.cs
	* System.Data/System.Data/IDataRecord2.cs 
		- GetProviderSpecificFieldType : Corrected the method name
	* System.Data/System.Data.Common/DbDataAdapter.cs
	* System.Data/System.Data.Common/DbParameter.cs
	* System.Data/System.Data.Common/DbTransaction.cs
	* System.Data/System.Data.Common/DbTable.cs
	* System.Data/System.Data.Common/DbProviderFactories.cs
	* System.Data/System.Data.Common/DbException.cs
	* System.Data/System.Data.Common/DbProviderFactory.cs
	* System.Data/System.Data.Common/DbCommandBuilder.cs
	* System.Data/System.Data.Common/DbDataReader.cs
	* System.Data/System.Data.Common/DbParameterCollection.cs
	* System.Data/System.Data.SqlClient/SqlClientFactory.cs
	* System.Data/System.Data.SqlClient/SqlCommandBuilder.cs
	* System.Data/System.Data.SqlClient/SqlParameterCollection.cs
	* System.Data/System.Data.SqlClient/SqlDataReader.cs
	* System.Data/System.Data.SqlClient/SqlDataAdapter.cs
	* System.Data/System.Data.SqlClient/SqlParameter.cs
	* System.Data/System.Data.SqlClient/SqlTransaction.cs
	* System.Data/System.Data.Odbc/OdbcTransaction.cs
	* System.Data/System.Data.Odbc/OdbcCommandBuilder.cs
	* System.Data/System.Data.Odbc/OdbcParameterCollection.cs
	* System.Data/System.Data.Odbc/OdbcDataReader.cs
	* System.Data/System.Data.Odbc/OdbcFactory.cs
	* System.Data/System.Data.Odbc/OdbcDataAdapter.cs
	* System.Data/System.Data.Odbc/OdbcParameter.cs

	Added stubs and other changes for ADO.NET 2.0 compatibility
	

svn path=/trunk/mcs/; revision=53301
2005-11-21 13:08:48 +00:00
Senganal T 013608201c 2005-10-14 Senganal T <[email protected]>
* System.Data.Odbc/OdbcColumn.cs : Changed the mapping of OdbcType.Char to string
	instead of char. Fixes bug #67269


svn path=/trunk/mcs/; revision=51707
2005-10-14 09:09:47 +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 bf9387cd52 * OdbcDataReader.cs (GetValue): Use SQL_CHAR for Numeric as
temporary fix.


svn path=/trunk/mcs/; revision=51703
2005-10-14 07:13:46 +00:00
Sureshkumar T be4ca4ac72 2005-10-14 Sureshkumar T <[email protected]>
* OdbcParameter.cs (CopyValue): Add support for Numeric & Decimal
	parameters.


svn path=/trunk/mcs/; revision=51702
2005-10-14 07:10:30 +00:00
Sureshkumar T 7e8897e50b 2005-10-08 Sureshkumar T <[email protected]>
* 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
2005-10-08 10:08:20 +00:00
Sureshkumar T 67a386bf96 corrected typo.
svn path=/trunk/mcs/; revision=48708
2005-08-23 04:44:09 +00:00