** Fixes#456234 - Patch by [email protected]
* OdbcDataReader.cs (GetValue): Handle SQL_NO_TOTAL sanely and
use corresponding Decoder.GetChars instead of Encoding.GetString.
* OdbcDataReader.cs: apply patch from Steve ? that fixes bug #433741.
GetBytes() was returning only the last byte.
svn path=/trunk/mcs/; revision=115305
* 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
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
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
* 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
* 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
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
* 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
* 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
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
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
* 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-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
* 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
* 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
* 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
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