Commit Graph
29 Commits
Author SHA1 Message Date
Tim Coleman a67a885961 2003-04-14 Juraj Skripsky <[email protected]>
* DbDataAdapter.cs : Refactoring of Fill. New private method
	FillTable does most of the work now. Use int[] instead of
	hashtable for mapping. Move creation of tableArray[] outside
	of loop.

svn path=/trunk/mcs/; revision=24031
2004-03-15 02:48:39 +00:00
Andreas N b8ceb78111 2004-03-12 Andreas Nahr <[email protected]>
* DbDataPermissionAttribute.cs: Added .Net 1.1 marks
	* DataColumnMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
	* DataTableMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
	* DataColumnMappingConverter: Added stub
	* DataTableMappingConverter: Added stub

svn path=/trunk/mcs/; revision=23961
2004-03-12 16:09:48 +00:00
Eran Domb 5232129591 Added new file ComparerFactory.
svn path=/trunk/mcs/; revision=23643
2004-03-03 08:03:35 +00:00
Atsushi Eno 8e13a8c81d 2004-01-10 Atsushi Enomoto <[email protected]>
* DbDataPermission.cs : tiny fix to pass OleDbPermission.

svn path=/trunk/mcs/; revision=21912
2004-01-10 18:28:11 +00:00
Atsushi Eno ce76a33700 2004-01-09 Atsushi Enomoto <[email protected]>
* DbDataPermission.cs : .ctor(PermissionState state) should not call
	  obsolete .ctor(state, allowBlankPassword). csc reports an error.

svn path=/trunk/mcs/; revision=21875
2004-01-09 14:37:06 +00:00
Gonzalo Paniagua Javier 4207917675 2003-12-30 Gonzalo Paniagua Javier <[email protected]>
* DbDataAdapter.cs: handle MissingShemaAction.AddWithKey, call
	AcceptChanges in Update when a CommandBuilder is used and
	correctly fill information about primary keys in FillSchema.
	Patch from Sergei Malinin ([email protected]).

svn path=/trunk/mcs/; revision=21553
2003-12-30 12:56:29 +00:00
Tim Coleman a3be91e485 2003-12-23 Tim Coleman <[email protected]>
* DbConnectionString.cs:
                Some implementation
        * DbProviderFactory.cs:
                Fix typo to make CLS compliant

svn path=/trunk/mcs/; revision=21465
2003-12-23 21:09:38 +00:00
Tim Coleman 78ec55912f *** empty log message ***
svn path=/trunk/mcs/; revision=21461
2003-12-23 21:04:43 +00:00
Jackson Harper d2d5721bf9 * SchemaTableOptionalColumn.cs: Add to fix default build
svn path=/trunk/mcs/; revision=21266
2003-12-17 09:49:42 +00:00
Tim Coleman 7b11d92602 2003-12-16 Tim Coleman <[email protected]>
* CatalogLocation.cs DbCommand.cs DbCommandBuilder.cs
        * DbCommandOptionalFeatures.cs DbCommandSet.cs DbConnection.cs
        * DbConnectionString.cs DbDataSourceEnumerator.cs
        * DbDataUpdatableRecord.cs DbParameter.cs DbParameterCollection.cs
        * DbProviderConfigurationHandler.cs DbProviderFactories.cs
        * DbProviderFactoriesConfigurationHandler.cs DbProviderFactory.cs
        * DbProviderSupportedClasses.cs DbTable.cs DbTransaction.cs
        * GroupByBehavior.cs IdentifierCase.cs SchemaLocation.cs
        * SchemaTableColumn.cs:
                New stubs added for .NET 1.2
        * DataAdapter.cs DataColumnMapping.cs DataColumnMappingCollection.cs
        * DataTableMapping.cs DataTableMappingCollection.cs DbDataAdapter.cs
        * DbDataPermission.cs DbDataPermissionAttribute.cs DbDataRecord.cs
        * FieldNameLookup.cs SchemaInfo.cs:
                Changes made for .NET 1.2

svn path=/trunk/mcs/; revision=21259
2003-12-17 01:59:11 +00:00
Eran Domb 441325cafd Adding remark.
svn path=/trunk/mcs/; revision=20657
2003-12-01 07:20:43 +00:00
Tim Coleman 7f8e281cab 2003-11-26 Tim Coleman <[email protected]>
* DbDataReader.cs: Add new stub class

svn path=/trunk/mcs/; revision=20460
2003-11-26 06:18:37 +00:00
Pedro Martínez Juliá cb09b2aa71 2003-11-23 Pedro Mart�nez Juli� <[email protected]>
* DbDataAdapter.cs: Call command dispose in self dispose method. We
    need to dispose the connections and other stuff stored in the
    commands.

svn path=/trunk/mcs/; revision=20355
2003-11-23 17:28:59 +00:00
Pedro Martínez Juliá 18cbe9acde 2003-11-10 Pedro Mart�nez Juli� <[email protected]>
* DataColumnMappingCollection.cs: Fix a missing exception when the
    required mapping is not in the collection. MS.NET throws an
    exception there.

svn path=/trunk/mcs/; revision=19797
2003-11-10 22:29:30 +00:00
Eran Domb 346c172fb4 *** empty log message ***
svn path=/trunk/mcs/; revision=19294
2003-10-22 06:13:36 +00:00
Duncan Mak 8e8b1a660a Patches from Eran Domb <[email protected]>.
* DbDataAdapter.cs (Fill): Fixed an Exception from being thrown.

* DataRelation.cs (constructor): When the name of the relation is
null, it should return an empty, not "Relation".

* DataRow.cs (AcceptChanges): Added special case for
RowState.Detached.
(CancelEdit): Set editing flag to false.
(IsNull): Check that the value is DBNull.

* DataRowCollection.cs (Add): There was no check that the table of
the collection is owned by a DataSet.

* DataSet.cs (OnMergeFailed): Added.

* UniqueConstraint.cs (AssertConstraint): There was no check that
values in the row are not null, where it is a primary key
column. Also check that the row has a proposed version, if not,
get the current version when we compare the rows.

svn path=/trunk/mcs/; revision=18452
2003-09-30 23:25:54 +00:00
Duncan Mak d101df5ef4 Patches from Eran Domb <[email protected]>.
* DbDataAdapter.cs (Fill): Patch from Eran Domb, <[email protected]>.
Fixes a possible NullReferenceException, more details here:

* DataColumn.cs (Unique): Implemented.

* DataTable.cs:
* ConstraintCollection.cs:
* ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
an Exception thrown. Details:
http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html

* DataRowCollection.cs (Add): There is no checking that there is
no violation of the unique constrains.

* UniqueConstraint.cs (AssertConstraint): There is no checking on
all columns in the constraint.

svn path=/trunk/mcs/; revision=18298
2003-09-25 17:33:15 +00:00
Miguel de Icaza e7eab57a51 2003-09-21 eran <[email protected]>
* DbDataRecord.cs: The method
	System.Data.Common.DbDataRecord.GetValues(object[] values) did not
	put the values of the DbDataRecord into values parameter.

svn path=/trunk/mcs/; revision=18264
2003-09-22 13:04:21 +00:00
Gonzalo Paniagua Javier 9d7bca1564 2003-08-26 Gonzalo Paniagua Javier <[email protected]>
* DbDataAdapter.cs: provide a Type for ToArray to avoid invalid cast
	exception. Thanks to Mark Easton <[email protected]>.

svn path=/trunk/mcs/; revision=17622
2003-08-26 12:47:32 +00:00
Duncan Mak 8ce905380e * DataAdapter.cs (CloneInternals): Mark with ObsoleteAttribute for
NET_1_1.

* DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.

* XmlDataDocument.cs (BaseURI):
(InnerXml):
(IsReadOnly):
(this):
(LocalName):
(Name):
(OwnerDocument):
(WriteContentTo):
(WriteTo): Removed, these do not need to be redefined, as
they are inherited from XmlDocument already.

svn path=/trunk/mcs/; revision=16966
2003-07-31 23:24:36 +00:00
Alan Tam 5991949a8b 2003-03-21 Alan Tam <[email protected]>
* DbDataAdapter.cs: Update now uses correct DataRowVersion
        when accessing the data.

svn path=/trunk/mcs/; revision=12729
2003-03-21 13:27:08 +00:00
Aleksey Demakov 75cb691248 *** empty log message ***
svn path=/trunk/mcs/; revision=12614
2003-03-17 12:37:45 +00:00
Aleksey Demakov 658b2bb4a2 *** empty log message ***
svn path=/trunk/mcs/; revision=12057
2003-02-28 08:39:18 +00:00
Alan Tam 8b911be307 2003-02-25 Alan Tam <[email protected]>
* DbDataAdapter.cs: Added support for filling when schema is present.
        Fixed incorrect behavior when ColumnMapping is present
        when more than one fields have the same name. Implemented Dispose.
        Fixed error when there is no ColumnMapping at all.
        Still have some problems in finding the correct TableMapping
        because the SourceTable name is not present in BuildSchema

svn path=/trunk/mcs/; revision=11963
2003-02-25 16:19:29 +00:00
Alan Tam d4a29fe97a 2003-02-24 Aleksey Demakov <[email protected]>
* DbDataAdapter.cs: The original code might pass a null DataTableMapping
	value which is then used to create a RowUpdatingEventArgs
	instance. So RowUpdatingEvent handler (for instance
	CommandBuilder) could get null DataTableMapping which
	might be unexpected. The patch makes sure that a non-null
	DataTableMapping is passed.

svn path=/trunk/mcs/; revision=11930
2003-02-24 17:47:28 +00:00
Gonzalo Paniagua Javier 72ebbb608f 2003-01-26 Gonzalo Paniagua Javier <[email protected]>
* DbEnumerator.cs: why does the runtime throw an invalid cast here? The
	object is an Int16... Gotta fill a bug report and when fixed undo this
	patch.

svn path=/trunk/mcs/; revision=10914
2003-01-26 08:31:53 +00:00
Gonzalo Paniagua Javier 5b52c01d8f 2003-01-08 Gonzalo Paniagua Javier <[email protected]>
* DbDataRecord.cs: return DbNull.Value in GetValue () if value is null.

svn path=/trunk/mcs/; revision=10269
2003-01-08 05:52:24 +00:00
Daniel Morgan 75a4f966bb 2002-10-31 Daniel Morgan <[email protected]>
* SchemaInfo.cs: added missing properties to fix mcs build

svn path=/trunk/mcs/; revision=8724
2002-11-01 03:35:52 +00:00
Miguel de Icaza f3681bcbda It is safe to commit this code, because it is still excluded by the
build file above.

2002-05-05  Miguel de Icaza  <[email protected]>

	* DataTableMapping.cs, DataTableMappingCollection.cs: comment out
	interfaces we do not implement yet.

	* DbDataAdapter.cs: Stub IEnumerable, comment out interfaces
	we do not implement yet.

	* DbDataPermissionAttribute.cs: call base constructor.

svn path=/trunk/mcs/; revision=4309
2002-05-05 17:03:08 +00:00