Commit Graph
168 Commits
Author SHA1 Message Date
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
Gert Driesen b594633a1b * OdbcDataReader.cs: Marked GetPrimaryKeysBySQLStatistics unsafe.
This fixes the build on Windows (using csc).
* Makefile: Allow unsafe code. This fixes the build on Windows (using
csc).

svn path=/trunk/mcs/; revision=48595
2005-08-20 13:12:56 +00:00
Sureshkumar T 8db91ad270 * OdbcDataReader.cs: GetSchemaTable (): set values for the column
attributes using SQLColAttribute. If SQLPrimaryKeys does not
	yeild, try SQLStatistics. Optimized primary key logic.

	* libodbc.cs: Added api SQLStatistics and constants.


svn path=/trunk/mcs/; revision=48167
2005-08-09 13:57:41 +00:00
Sureshkumar T 5f4b126c3e 2005-08-09 Sureshkumar T <[email protected]>
* OdbcParameter.cs: setBuffer (): allocate a short int buffer for
	OdbcType.SmallInt. fixes bug #75600.


svn path=/trunk/mcs/; revision=48149
2005-08-09 06:46:05 +00:00
Gert Driesen 5f2664c2c3 * OdbcConnection.cs: Marked Init helper method private.
* OdbcCommand.cs: Marked BindParameters helper method private.

svn path=/trunk/mcs/; revision=48141
2005-08-08 17:29:27 +00:00
Sureshkumar T 807abd8d52 2005-08-08 Sureshkumar T <[email protected]>
* OdbcDataReader.cs: Implemented Dispose pattern. Cache
	schematable for same result set. don't free command's statements
	if the command is prepared.

	* OdbcCommand.cs:
	- Implemented Dispose pattern
	- Streamlined the allocation and de-allocation of statement
	handles.


svn path=/trunk/mcs/; revision=48120
2005-08-08 13:02:16 +00:00
Sureshkumar T 249ad86de4 * OdbcConnection.cs: Open (): set disposed to false so that close
will be called in Dispose.


svn path=/trunk/mcs/; revision=48119
2005-08-08 11:48:14 +00:00
Sureshkumar T 4d2591b6b3 2005-08-08 Sureshkumar T <[email protected]>
* OdbcCommand.cs: Prepare (): Split SQLPrepare and SQLBind so that
	already prepared statements can be reused with new parameter
	values. ExecSQL (): create new statement handle, if not prepared
	and there are no parameters. if there are parameters, prepare and
	use.


svn path=/trunk/mcs/; revision=48118
2005-08-08 11:46:00 +00:00
Sureshkumar T 43bef71bf3 In System.Data.Common:
2005-08-05  Sureshkumar T  <[email protected]>

	* DbDataAdapter.cs:
	- Update (): set parameter values only after getting the
	appropriate command from command builder. Close reader only if it
	is not closed before. Use parameter's SourceVersion. Whitespace
	corrections to comply with standard.

In System.Data.SqlClient:
2005-08-05  Sureshkumar T  <[email protected]>

	* SqlCommandBuilder.cs: Set SourceVersion property to the created
	parameters as it is used by the Adapter's Update method.

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

	* OdbcDataReader.cs: RecordsAffected: get value from command.
	GetSchemaTable (): set IsExpression based on BaseTableName. set
	AllowDBNull to false if the column is PK.

	* OdbcCommand.cs: correct UpdatedRowSource is returned. whitespace
	changes to conform to standard.

	* OdbcCommandBuilder.cs: Implemented.

	* OdbcParameter.cs: Direction is set to Input by default.


svn path=/trunk/mcs/; revision=48043
2005-08-05 14:59:55 +00:00
Sureshkumar T 88fba070be In System.Data.Common:
2005-07-22  Sureshkumar T  <[email protected]>

	* DataColumnMappingCollection.cs: updated attributes & attribute
	descriptions to match with masterinfos.

In System.Data.SqlClient:
2005-07-22  Sureshkumar T  <[email protected]>

	* SqlCommandBuilder.cs, SqlParameterCollection.cs,
	SqlConnection.cs, SqlParameter.cs:
	- updated attributes & attribute descriptions to match with
	masterinfos.

In System.Data:
	* DataViewSettingCollection.cs, DataTableCollection.cs,
	DataSet.cs, DataView.cs, DataColumn.cs, ForeignKeyConstraint.cs,
	DataRelationCollection.cs, UniqueConstraint.cs, DataTable.cs,
	DataColumnCollection.cs, DataRelation.cs, DataSet.cs:
	- updated attributes & attribute descriptions to match with
	masterinfos.

In System.Data.Odbc:
	* OdbcParameter.cs: updated attributes & attribute descriptions to
	match with masterinfos.


svn path=/trunk/mcs/; revision=47554
2005-07-22 10:57:02 +00:00
Sureshkumar T f85959cd0b In System.Data:
2005-07-22  Sureshkumar T  <[email protected]>

	* DataView.cs: changed protected members
	rowstate,rowcache,dataTable to protected internal.
	* Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint.cs:
	changed InConstraintViolated to protected internal.
	* ConflictOptions.cs, UpdateOptions.cs, FillOptions.cs: enclosed
	with NET_2_0 define.

In System.Data.Odbc:
2005-07-22  Sureshkumar T  <[email protected]>

	* OdbcDataReader.cs: NextRow (): made private.

	Formatting corrections. Fixes bug #75574.

svn path=/trunk/mcs/; revision=47547
2005-07-22 06:38:27 +00:00
Sureshkumar T 07913b599a 2005-07-21 Sureshkumar T <[email protected]>
* OdbcDataReader.cs: GetValue (): added case for OdbcType.Bit. and
	Formatting corrections.


svn path=/trunk/mcs/; revision=47510
2005-07-21 11:05:55 +00:00
Sureshkumar T 2a02207697 2005-07-07 Sureshkumar T <[email protected]>
* OdbcTypeConverter.cs: ConvertToSqlType & ConvertToSqlCType: map
	VarChar to SQL_C_CHAR and SQL_VARCHAR respective instead of WCHAR
	and WVARCHAR as temporary fix.

	* OdbcParameter.cs: setBuffer: string types need not be quoted.


svn path=/trunk/mcs/; revision=47041
2005-07-07 15:47:53 +00:00
Sureshkumar T 0594791a49 2005-06-28 Sureshkumar T <[email protected]>
* OdbcDataReader.cs: GetPrimaryKeys (): use the length indicator
	for GetString, otherwise, it creates a string of length 255. Use
	ArrayList for keys as the columns are different from the selected
	columns. fixes bug #75263.


svn path=/trunk/mcs/; revision=46641
2005-06-28 11:50:14 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Sureshkumar T 0f9933ca8e 2005-06-09 Sureshkumar T <[email protected]>
* System.Data.Odbc/OdbcDataReader.cs: GetValue (): return decimal in case of odbc
	type Numeric. Move the temp buffer logic inside.

	* System.Data.Odbc/OdbcTypeConverter.cs: map SQL_TYPE.NUMERIC to SQL_C_TYPE.CHAR by
	now, since PgSql driver seems not to accept NUMERIC c type. Other
	database anyway, provides NUMERIC datatype as DECIMAL.


svn path=/trunk/mcs/; revision=45683
2005-06-09 10:30:34 +00:00
Sureshkumar T 01c8d2d89c 2005-05-31 Sureshkumar T <[email protected]>
* OdbcParameter.cs: setBuffer (): for numeric type, the buffer
	parameter should be a packed decimal struct. fixes bug #75041.


svn path=/trunk/mcs/; revision=45245
2005-05-31 10:01:08 +00:00
Ben Maurer 2a81dac63f locking fixes
svn path=/trunk/mcs/; revision=45085
2005-05-26 23:06:52 +00:00
Sureshkumar T d7571f6a6e 2005-04-05 Sureshkumar T <[email protected]>
* OdbcParameter.cs: SqlBindParameter requires the last parameter
	to be a ref.
	* libodbc.cs: API change for above.


svn path=/trunk/mcs/; revision=42553
2005-04-05 09:25:59 +00:00
Sureshkumar T 867af6a6c1 2005-04-04 Sureshkumar T <[email protected]>
* OdbcDataReader.cs: Ignore BaseTableName & BaseColumnName
	properties while building Schema information as most drivers
	ignores these properties. e.g. PostgreSQL.


svn path=/trunk/mcs/; revision=42505
2005-04-04 08:27:22 +00:00
Sureshkumar T 49454d397d 2005-03-24 Sureshkumar T <[email protected]>
Appasamy <[email protected]>

	* OdbcColumn.cs: IsStringType: OdbcType.Char is also of type
	String.
	* OdbcDataReader.cs: GetSchemaTable: Get Additional info using
	SQLColAttribute. Don't pad with spaces in GetColAttributeStr.


svn path=/trunk/mcs/; revision=42220
2005-03-24 15:26:48 +00:00
Sureshkumar T 67465db331 GetOrdinal: Perform case insensitive lookup if sensitive lookup fails.
svn path=/trunk/mcs/; revision=42214
2005-03-24 14:23:30 +00:00
Sureshkumar T eb0d2c56eb 2005-03-24 Sureshkumar T <[email protected]>
* OdbcDataReader.cs: Decode only outsize length for
	SQL_C_TYPE.CHAR type in SQLGetData.


svn path=/trunk/mcs/; revision=42211
2005-03-24 13:55:59 +00:00
Sureshkumar T fbf1f2c678 2005-03-22 Sureshkumar T <[email protected]>
Appsamy <[email protected]>

	* libodbc.cs (System.Data.Odbc): Added enum FieldIdentifier. Added
	library functions SQLPrimaryKeys, SQLBindCol and SQLColAttribute.

	* OdbcDataReader.cs: Implemented GetPrimaryKeys to get the primary
	keys associated with resultset using SQLPrimaryKeys.


svn path=/trunk/mcs/; revision=42071
2005-03-22 09:19:13 +00:00
Sureshkumar T 03a5e795d2 mark internal for SQL_C_TYPE
svn path=/trunk/mcs/; revision=42070
2005-03-22 09:12:02 +00:00
Sureshkumar T 12ea47e504 2005-03-15 Sureshkumar T <[email protected]>
* OdbcConnection.cs: re-throw error on exception in Open method.


svn path=/trunk/mcs/; revision=41836
2005-03-15 15:00:50 +00:00
Sureshkumar T ad03cf4661 In System.Data.ProviderBase:
2005-03-11  Sureshkumar T  <[email protected]>

	* DbConnectionBase.cs : Implemented OnStateChange.

In System.Data.Odbc:
	NET_2_0 uses base class's OnStateChange handler.

svn path=/trunk/mcs/; revision=41679
2005-03-11 07:36:58 +00:00
Sureshkumar T 9edfba2f90 2005-03-11 Sureshkumar T <[email protected]>
* OdbcConnection.cs : notify state change through event. clean up
	handles in case any exception while opening a connection.


svn path=/trunk/mcs/; revision=41678
2005-03-11 07:25:22 +00:00
Sureshkumar T b1ab44391f In .:
2005-03-10  Sureshkumar T  <[email protected]>

	* System.Data.dll.sources: Added
	System.Data.Odbc/OdbcConnectionFactory.cs. 
	System.Data.Odbc/OdbcFactory.cs.

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

	Migrated core classes to derive from ProviderBase instead of
	implementing IDb* interfaces. Most part of these files have been
	branched with #if NET_2_0/ONLY_1_1. Make sure any changes works
	with both the profiles.

	* OdbcFactory.cs: Concrete Factory for DbProviderFactory. Factory
	to generate Connection,Command,etc.

	* OdbcConnectionFactory.cs: Concrete factory for DbConnectionFactory.

	* OdbcTransaction.cs: migration and overrides.
	* OdbcCommandBuilder.cs: migration and overrides.
	* OdbcDataReader.cs: --do--. no command behavior member as it will
	be maintained in base provider class.
	* OdbcParameterCollection.cs: --do--. Now, local ArrayList is not
	maintained here, instead it is in base class. Most of the methods
	which operated on this list are not needed in NET_2_0.
	* OdbcConnection.cs: Migration. connectionString is maintained in
	DbConnectionBase class.
	* OdbcParameter.cs: Migration. Many of the local members like
	value,sourceColumn are maintained in DbParameterBase.
	* OdbcCommand.cs: Migration. commandText,timeout and
	commandTimeOut are maintained in DbCommandBase class.


svn path=/trunk/mcs/; revision=41643
2005-03-10 12:48:43 +00:00
Sureshkumar T b3148ef3a3 In .:
2005-03-10  Sureshkumar T  <[email protected]>

	* System.Data.dll.sources: Added
	System.Data.Odbc/OdbcTypeConverter.

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

	* OdbcType.cs: Added enums for SQL_TYPE & SQL_C_TYPE.
	
	* libodbc.cs: Accept SQL_C_TYPE for driver
	parameters. SQLBindParameter takes two parameters SQL_TYPE and
	SQL_C_TYPE. This caused the whole lot of changes done in this
	revision.
	
	* OdbcParameter.cs: Set default values of OdbcType & DbType. Pass
	mapped SQL_TYPE and SQL_C_TYPE to SQLBindParameter. Increase
	buffer size by 2 for additional ' chars.
	
	* OdbcTypeConverter.cs: Added class to convert between OdbcType,
	SQL_TYPE, SQL_C_TYPE.
	
	* OdbcColumn.cs: Added private members for SQL_TYPE and
	SQL_C_TYPE. conversion from/to odbctype to/from SQL_TYPE is done
	through OdbcTypeConverter class.
	
	* OdbcDataReader.cs: use OdbcColumn's SQL_C_TYPE member. It keeps
	track of default mapping between odbctype, SQL_TYPE and
	SQL_C_TYPE. Move dataTableSchema.AcceptChanges inside if condition
	to avoid null reference exception.


svn path=/trunk/mcs/; revision=41640
2005-03-10 09:13:45 +00:00
Sureshkumar T c577c68901 2005-02-04 Sureshkumar T <[email protected]>
Appasamy <[email protected]>

	* OdbcConnection.cs: Implemented properties database, datasource,
	serverversion and driver.
	* libodbc.cs: Added type OdbcInfo and native call SQLGetInfo.


svn path=/trunk/mcs/; revision=40134
2005-02-04 14:23:19 +00:00
Sureshkumar T 5b84e7ba4d 2005-01-20 Sureshkumar T <[email protected]>
* OdbcDataReader.cs: case for type OdbcType.Double added in
	GetValue.  fixes bug #71173.

	Thanks to patch given by "Appasamy T" <[email protected]>


svn path=/trunk/mcs/; revision=39236
2005-01-20 08:20:19 +00:00
Sureshkumar T 0d1e0487e4 2005-01-19 Sureshkumar T <[email protected]>
* OdbcType.cs: Change enum values for compatiability with MS.NET.
	* libodbc.cs: Change enum values for compatiability with
	MS.NET. Change calls into driver with native type.
	* OdbcDataReader.cs: Change enum values for compatiability with
	MS.NET. Change calls from/into driver with native type.


svn path=/trunk/mcs/; revision=39140
2005-01-19 09:05:15 +00:00
Sureshkumar T 5b2b357f80 2005-01-18 Sureshkumar T <[email protected]>
* OdbcDataReader.cs: GetOrdinal need not check for
	currentRow. Return -1 if column name is not found.

	fixes bug #71261. Thanks to patch given by "Appasamy T"
	<[email protected]>.


svn path=/trunk/mcs/; revision=39093
2005-01-18 15:09:10 +00:00