* 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
* OdbcConnection.cs: Fix: Moved env allocation to Open method.
Disconnection & freeing handles are done in Close
method to avoid simultaneous connections.
* libodbc.cs : Added constants for odbc version.
svn path=/trunk/mcs/; revision=30161