* 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
* 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-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-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
* 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
* 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
* OdbcParameter.cs: setBuffer (): for numeric type, the buffer
parameter should be a packed decimal struct. fixes bug #75041.
svn path=/trunk/mcs/; revision=45245
* 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
* 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-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 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
* 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
* 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
* 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
* OdbcDataReader.cs: Implement NextResultSet for multiple result
set queries.
* OdbcDataReader.cs: build column schema once creating reader and
then for each Next result set. Thanks to
[email protected] (Sebastien Robitaille) for
pointing out this optimization (bugzilla #70530).
* libodbc.cs: Added library calls SQLFreeStmt and SQLMoreResults
for mutiple resultsets.
svn path=/trunk/mcs/; revision=38868
* OdbcDataReader.cs: Pass OdbcCType.SignedBigInt for accessing big
int columns.
* OdbcType.cs: Added a new enum for Odbc C DataTypes. This should
essentially be passed to drivers, since the public OdbcType types
differs from types expected in drivers in some cases.
* libodbc.cs : Added a ODBC method which takes OdbcCType
enumeration for SQLGetData for BigInt fields.
fixes bug #65342.
svn path=/trunk/mcs/; revision=38485
* libodbc.cs: Change all the DllImport attributes to point to
"odbc32.dll" instead of "odbc32", because /etc/mono/config lists
"odbc32.dll" (all other entries in the file have the .dll suffix
as well, for consistency's sake, let's rename it here.)
This fixes#70727.
svn path=/trunk/mcs/; revision=38151
* OdbcParameter.cs: Fixed a null reference exception when a
parameter is created and its value is not set. #68750.
svn path=/trunk/mcs/; revision=37020
In System.Data.Odbc:
* OdbcParameter.cs: Fixed Parameter Size property as well as
insufficient buffer errors. bug #68749.
In Test/System.Data.Odbc:
* OdbcParameterCollectionTest.cs: New file for testing
OdbcParameterCollection's Add method.
svn path=/trunk/mcs/; revision=36621
* OdbcPermission.cs: Added internal constructor accepting an Odbc
PermissionAttribute parameter (using base class protected ctor).
* OdbcPermissionAttribute.cs: Copy now use the new OdbcPermission
constructor.
svn path=/trunk/mcs/; revision=33903
* OdbcDataReader.cs - Fixed bug 61832 - Column names were not filled, due to which name based lookup of columns failed.
svn path=/trunk/mcs/; revision=31855
* OdbcConnection.cs - Allowed Close to be called multiple times
- Implementation of Dispose method
(patch submitted by Sebastien Robitaille), corrected a typo
svn path=/trunk/mcs/; revision=30826
* OdbcConnection.cs - Allowed Close to be called multiple times
- Implementation of Dispose method
(patch submitted by Sebastien Robitaille)
svn path=/trunk/mcs/; revision=30825