* System.Data.OleDb/libgda.cs: adapted to changes in libgda (get_vtype
and get_type for GdaValue).
* System.Data.OleDb/OleDbDataReader.cs: adapted to changes in
libgda.cs.
svn path=/trunk/mcs/; revision=6870
* System.Data.OleDb/OleDbConnection.cs (DataReader): new internal
property.
(Close): set the dataReader to null.
* System.Data.OleDb/OleDbDataReader.cs (OleDbDataReader): set the
connection's DataReader property to this object.
(Close): set it to null here.
(Depth, IsDbNull): implemented.
(this): implemented the Item property with a string indexer.
* System.Data.OleDb/OleDbCommand.cs (ExecuteNonQuery, ExecuteReader,
ExecuteScalar): do nothing if there's already an open data reader.
* System.Data.OleDb/libgda.cs: more API functions.
* System.Data.OleDb/TestOleDb.cs (TestDataReader): close the data
reader before continuing.
svn path=/trunk/mcs/; revision=6847
* System.Data.OleDb/OleDbDataReader.cs (Close): clear the results
ArrayList after releasing the items.
(GetName, GetDateTime, GetDouble, GetSingle, GetInt16, GetInt32,
GetOrdinal, GetString): implemented.
(GetDataTypeName): made it get the type from the data model, not from
the current value, which could not have been retrieved yet.
(GetValue): call the Get* method corresponding with the data type of
the requested column.
* System.Data.OleDb/libgda.cs: added more libgda functions.
(GdaTimestamp, GdaDate, GdaTime): new marshalled structures.
* System.Data.OleDb/TestOleDb.cs (TestDateReader): display column
titles via OleDbDataReader.GetName ().
(TestOleDb): create temporary table with a date field.
(InsertRow): set current date for the date field.
svn path=/trunk/mcs/; revision=6722
* System.Data.OleDb/OleDbDataReader.cs (this[]): made it just call
GetValue, which will take care of all the work needed.
(Close): implemented basic stuff.
(~OleDbDataReader): implemented.
* System.Data.OleDb/libgda.cs: added more needed functions.
svn path=/trunk/mcs/; revision=6721
* System.Data.OleDb/libgda.cs: added new needed libgda functions.
* System.Data.OleDb/OleDbDataReader.cs (GetBoolean): throw exceptions
when there are errors.
(GetByte, GetChar, GetDataTypeName, GetValue, Read): implemented.
* System.Data.OleDb/TestOleDb.cs: added more testing code for data
readers.
svn path=/trunk/mcs/; revision=6662
* System.Data.OleDb/OleDbCommand.cs (ExecuteReader): check values
for NULL before passing them to Marshal.PtrToStructure, which issues
an exception if the value is NULL.
svn path=/trunk/mcs/; revision=6660
* System.Data.OleDb/libgda.cs: added some GdaValue functions.
* System.Data.OleDb/OleDbCommand.cs (OpenReader): removed this
internal method, since we don't need it.
(ExecuteReader): call SetupGdaCommand before executing the command
via libgda functions.
(ExecuteScalar): implemented.
* System.Data.OleDb/OleDbDateReader.cs (OleDbDataReader): removed call
to OleDbCommand.OpenReader.
(GetBoolean): implemented.
svn path=/trunk/mcs/; revision=6597
* OleDbCommand.cs (ExecuteReader):
(CreateParameter): implemented IDbCommand methods.
(CommandText): don't create many GdaCommand's, only one is needed.
(ExecuteNonQuery): set up the internal GDA command object.
(ExecuteReader): use correctly the unique GDA command object.
* libgda.cs: added new libgda calls.
svn path=/trunk/mcs/; revision=6232
* libgda.cs: added new libgda functions and some enumerations.
* OleDbParameter.cs (IsNullable): removed explicit implementation
of the set method for this property.
* OleDbDataAdapter.cs (MissingMappingAction): implemented.
(MissingSchemaAction): implemented.
svn path=/trunk/mcs/; revision=5707
* libgda.cs: added new libgda API functions.
* OleDbConnection.cs (Provider): implemented.
(BeginTransaction): made it overload IDbConnection methods.
(ChangeDatabase): new stub, needs some work on libgda for being
implemented.
(Clone): new stub.
(Close): implemented.
(CreateCommand): implemented.
(GetOleDbSchemaTable): new stub, until I understand what to do here.
(Open): implemented basic stuff, which is just supporting connection
strings that represent a GDA data source name. More to come.
(InfoMessage, StateChange): added events.
* TestOleDb.cs: test program for System.Data.OleDb.
svn path=/trunk/mcs/; revision=5081
* libgda.cs: added static constructor.
(GdaClient): new static property to get the underlying GdaClient
object.
* OleDbConnection.cs: removed GDA initialization, which belongs to
the static 'libgda' class.
svn path=/trunk/mcs/; revision=5011