Commit Graph
81 Commits
Author SHA1 Message Date
Martin 90d8a5a9b2 commit 2060853826 removed a complete method call 2011-12-29 14:29:35 +01:00
QuickJack 2060853826 Fixes some warnings in System.Data.dll 2011-12-27 19:16:04 +01:00
vvaradhan 367fe78d52 2010-12-07 Veerapuram Varadhan <[email protected]>
** Fixes #456234 - Patch by [email protected]
	* OdbcDataReader.cs (GetValue): Handle SQL_NO_TOTAL sanely and
	use corresponding Decoder.GetChars instead of Encoding.GetString.
2010-12-07 20:39:47 +05:30
Jonathan Chambers a3ef4c8294 2010-06-15 Jonathan Chambers <[email protected]>
* Tds.cs: Add {} around default switch case.
	* OdbcDataReader.cs: Remove unneeded cast on ref parameter

svn path=/trunk/mcs/; revision=158984
2010-06-15 22:48:09 +00:00
Veerapuram Varadhan c55231b62e * OdbcDataReader.cs (GetValue): Handle null image data. Fixes
##419224. Patch by John Mortlock <[email protected]>.


svn path=/trunk/mcs/; revision=127530
2009-02-20 11:40:42 +00:00
Gert Driesen 8c27be40e5 * OdbcDataReader.cs: Fixed GetBytes with limited length. Added reader
state and argument checks.

svn path=/trunk/mcs/; revision=123751
2009-01-18 21:09:06 +00:00
Gonzalo Paniagua Javier dc319cf57f 2008-10-09 Gonzalo Paniagua Javier <[email protected]>
* OdbcDataReader.cs: apply patch from Steve ? that fixes bug #433741.
	GetBytes() was returning only the last byte.


svn path=/trunk/mcs/; revision=115305
2008-10-09 05:17:43 +00:00
Marek Safar 02e9af391d Warnings cleanup
svn path=/trunk/mcs/; revision=111855
2008-08-28 19:08:55 +00:00
Veerapuram Varadhan 1bcbfaff0e Don't call GetSchemaTable() from the constructor, just fetch the column
information.

Patch provided by Ernesto.

svn path=/trunk/mcs/; revision=111649
2008-08-26 19:39:27 +00:00
Sebastien Pouliot 533ad7b481 2008-07-06 Sebastien Pouliot <[email protected]>
* OdbcDataReader.cs: Fix unneeded self-assignment for 'length'. Also
	fix a bad setter where "value = behavior" instead of "behavior = value"
	[Found using Gendarme ReviewSelfAssignmentRule]


svn path=/trunk/mcs/; revision=107331
2008-07-06 15:43:51 +00:00
Gert Driesen 5ce6ac40a9 * OdbcTransaction.cs: Use internal CreateOdbcException method on
OdbcConnection to create OdbcException.
* OdbcException.cs: Added support for multiple OdbcError instances
and fixed Message property on 2.0 profile.
* OdbcCommand.cs: Use internal CreateOdbcException method on
OdbcConnection to create OdbcException. Code formatting.
* OdbcError.cs: Moved code to obtain ODBC error info to newly
introduced CreateOdbcException on OdbcConnection. Code formatting.
* OdbcDataReader.cs: Use internal CreateOdbcException method on
OdbcTransaction to create OdbcException.
* OdbcParameterCollection.cs: Removed obsolete Bind method.
* OdbcConnection.cs: Added SafeDriver property that returns
name of driver if available and a zero-length string otherwise.
Use CreateOdbcException method to create OdbcException from ODBC
error info. Added CreateOdbcException method to construct
OdbcException from all available ODBC error info.
* OdbcParameter.cs: Use internal CreateOdbcException method on
OdbcConnection to create OdbcException.

svn path=/trunk/mcs/; revision=98891
2008-03-24 18:56:49 +00:00
Gert Driesen 4adf826c22 * OdbcErrorCollection.cs: Corcompare fixes and code formatting.
* OdbcCommandBuilder.cs: Corcompare fixes and code formatting.
* OdbcPermission.cs: Corcompare fixes and code formatting.
* OdbcDataReader.cs: Corcompare fixes and code formatting.
* OdbcParameterCollection.cs: Corcompare fixes and code formatting.
* OdbcConnection.cs: Corcompare fixes and code formatting. Use
unicode encoding in ChangeDatabase and GetInfo.
* OdbcDataAdapter.cs: Corcompare fixes and code formatting.
* OdbcParameter.cs: Corcompare fixes and code formatting.

svn path=/trunk/mcs/; revision=98817
2008-03-23 09:30:19 +00:00
Gert Driesen a19e1c5f47 * libodbc.cs: Always use unicode version of ODBC functions. Fixes part
of bug #372823.
* OdbcTypeMap.cs: Fixed mapping for NChar, NText and NVarChar.
* OdbcDataReader.cs (GetColumn): Use Unicode encoding to decode
column name buffer.
(GetDataTypeName): Use SQLColAttribute to determine type name of
column.
(GetValue): Fixed retrieving value of nchar column. When retrieving
variable length unicode value, use Unicode encoding to decode buffer
and remove trailing null characters. Fixes bug #364430.

svn path=/trunk/mcs/; revision=98771
2008-03-21 21:00:55 +00:00
Veerapuram Varadhan 6f701accd2 ** Fixes Bug#324025.
svn path=/trunk/mcs/; revision=97230
2008-03-03 20:37:09 +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
Gert Driesen 68ce3413b5 * OdbcDataReader.cs: Code formatting, spaces to tabs.
svn path=/trunk/mcs/; revision=88350
2007-10-28 18:55:50 +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 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
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
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 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 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
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 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 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 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 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 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 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
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 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