Commit Graph
86 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
Umadevi S d4454e3a8a 2004-03-11 Umadevi S ([email protected])
* DbDataPermissionAttribute.cs - added properties ConnectionString and KeyRestrictionBehavior

svn path=/trunk/mcs/; revision=23907
2004-03-11 08:00:07 +00:00
Umadevi S 684e6c4007 2004-03-09 Umadevi S ([email protected])
* RowUpdatedEventArgs.cs - Removed MonoTODO tags

svn path=/trunk/mcs/; revision=23826
2004-03-09 10:38:23 +00:00
Umadevi S 2ad19f444b 2004-03-09 Umadevi S ([email protected])
* DbDataRecord.cs
			Implemented GetChars,GetBytes,GetData and IndexOutofRangeException

svn path=/trunk/mcs/; revision=23825
2004-03-09 07:42:29 +00:00
Umadevi S e67b701eae 2004-03-09 Umadevi S ([email protected])
* DataTableMappingCollection.cs - Implemented EditorAttribute and BrowsableAttribute

svn path=/trunk/mcs/; revision=23823
2004-03-09 04:15:58 +00:00
Umadevi S 8640466e55 2004-03-09 Umadevi S ([email protected])
* DataTableMapping.cs - Implemented System.ComponentModel.TypeConverterAttribute

svn path=/trunk/mcs/; revision=23821
2004-03-09 03:31:37 +00:00
Umadevi S 031202f547 2004-03-09 Umadevi S ([email protected])
* DataColumnMapping.cs - Implemented System.ComponentModel.TypeConverterAttribute

svn path=/trunk/mcs/; revision=23820
2004-03-09 03:24:08 +00:00
Eran Domb 5232129591 Added new file ComparerFactory.
svn path=/trunk/mcs/; revision=23643
2004-03-03 08:03:35 +00:00
Eran Domb 476a161d9f Use ExecuteReader instead of ExecuteNonQuery. We need to use the CommandBehavior parameter, so the connection will be closed if neede.
svn path=/trunk/mcs/; revision=21975
2004-01-12 08:53:13 +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
Tim Coleman 265ac58f46 2003-12-23 Tim Coleman <[email protected]>
* DbConnectionString.cs:
                Some implementation

svn path=/trunk/mcs/; revision=21460
2003-12-23 21:04:29 +00:00
Tim Coleman f044dd148f 2003-12-18 Tim Coleman <[email protected]>
SchemaTableOptionalColumn.cs:
		Forgot to commit before.  Oops.

svn path=/trunk/mcs/; revision=21334
2003-12-18 21:27:49 +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
Eran Domb 68cbdfe765 DbDataAdapter.cs : Check if there is mapping to avoid exception.
svn path=/trunk/mcs/; revision=20627
2003-11-30 15:20:33 +00:00
Tim Coleman f41a332b34 2003-11-26 Tim Coleman <[email protected]>
* DbDataReader.cs:
		Bugfix.

svn path=/trunk/mcs/; revision=20487
2003-11-26 18:07:41 +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
Eran Domb f3bafcf3c7 *** empty log message ***
svn path=/trunk/mcs/; revision=19292
2003-10-22 05:46:31 +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
Tim Coleman 9c37a664fd 2003-06-16 Tim Coleman <[email protected]>
* System.Data.Common/DbDataAdapter.cs:
                Add the DataTable to the result set even if it contains
                no rows.  Based on report by Krieg Andreas.

svn path=/trunk/mcs/; revision=15436
2003-06-16 14:50:57 +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 1c59f5e7ac *** empty log message ***
svn path=/trunk/mcs/; revision=12613
2003-03-17 12:18:58 +00:00
Daniel Morgan 55dc40239c 2003-03-10 Daniel Morgan <[email protected]>
* System.Data.SqlClient/SqlDataReader.cs: when
	the data reader is closed, this SqlDataReader referenced
	in SqlConnection needs to be null

	* System.Data.Common/DbDataAdapter.cs: for SelectCommands executed that
	have no result set, such as, DDL like CREATE TABLE or DML like INSERT,
	the data reader needs to be immediately closed, and 0 returned
	as the number of rows added or refreshed

svn path=/trunk/mcs/; revision=12403
2003-03-10 11:58:50 +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
Tim Coleman 348806b401 2002-11-15 Tim Coleman <[email protected]>
* System.Data.Common/DbDataPermission.cs:
        * System.Data.SqlClient/SqlClientPermission.cs:
                Make these agree on the class status page.
        * System.Data.SqlClient/SqlCommand.cs:
                - Fix up handling of GUID and [Var]Binary, and Image types
        * System.Data.SqlClient/SqlParameter.cs:
                - Provide support for conversion between Type,
                  DbType, SqlDbType, and the SQL server type names.
                - Fix up handling of GUID and [Var]Binary types
        * System.Data.SqlClient/SqlParameterCollection.cs:
                Correct all of the Add methods.
        * Test/SqlTest.cs:
                - Add more types to test: unique identifier, binary,
                  image, smalldatetime, money, smallmoney, timestamp

svn path=/trunk/mcs/; revision=9003
2002-11-16 04:14:16 +00:00
Daniel Morgan c831770264 2002-11-14 Daniel Morgan <[email protected]>
* System.Data/DataColumnPropertyDescriptor.cs
	* System.Data/DataRowView.cs
	* System.Data/DataView.cs
	* System.Data.Common/DbDataRecord.cs: a little bit more
	implementation for data binding purposes

	* Test/PostgresTest.cs
	* Test/TestSqlDataAdapter.cs
	* Test/TestSqlException.cs
	* TestSqlParameters.cs: fixed test for PostgreSQL's new home
	at Mono.Data.PostgreSqlClient

svn path=/trunk/mcs/; revision=8991
2002-11-14 23:27:34 +00:00
Tim Coleman 010b734f71 2002-11-12 Tim Coleman <[email protected]>
* System.Data.Common/DbDataAdapter.cs:
                Experimental support for FillSchema ()

svn path=/trunk/mcs/; revision=8946
2002-11-12 13:47:37 +00:00
Tim Coleman ee1c3a6682 2002-11-11 Tim Coleman <[email protected]>
* System.Data/ResDescriptionAttribute.cs:
        * list
                New internal class added
        * System.Data/Constraint.cs:
        * System.Data/ConstraintCollection.cs:
        * System.Data/DBConcurrencyException.cs:
        * System.Data/DataColumn.cs:
        * System.Data/DataColumnCollection.cs:
        * System.Data/DataRelation.cs:
        * System.Data/DataRelationCollection.cs:
        * System.Data/DataRow.cs:
        * System.Data/DataRowBuilder.cs:
        * System.Data/DataRowBuilder.cs:
        * System.Data/DataRowCollection.cs:
        * System.Data/DataSet.cs:
        * System.Data/DataTable.cs:
        * System.Data/DataTableCollection.cs:
        * System.Data/DataView.cs:
        * System.Data/DataViewManager.cs:
        * System.Data/DataViewSetting.cs:
        * System.Data/DataViewSettingCollection.cs:
        * System.Data/ForeignKeyConstraint.cs:
        * System.Data/ForeignKeyConstraint.cs:
        * System.Data/InternalDataCollectionBase.cs:
        * System.Data/MergeFailedEventArgs.cs:
        * System.Data/StrongTypingException.cs:
        * System.Data/TypeDataSetGeneratorException.cs:
        * System.Data/UniqueConstraint.cs:
        * System.Data.Common/DataAdapter.cs:
        * System.Data.Common/DataColumnMapping.cs:
        * System.Data.Common/DataColumnMappingCollection.cs:
        * System.Data.Common/DataTableMapping.cs:
        * System.Data.Common/DataTableMappingCollection.cs:
        * System.Data.Common/DbDataAdapter.cs:
        * System.Data.Common/DbDataPermission.cs:
        * System.Data.Common/DbDataPermissionAttribute.cs:
        * System.Data.Common/DbEnumerator.cs:
        * System.Data.SqlClient/SqlCommand.cs:
        * System.Data.SqlClient/SqlCommandBuilder.cs:
        * System.Data.SqlClient/SqlConnection.cs:
        * System.Data.SqlClient/SqlDataAdapter.cs:
        * System.Data.SqlClient/SqlParameter.cs:
                Add missing attributes, methods, properties based on information
                from System.Data class status page on go-mono.com.

svn path=/trunk/mcs/; revision=8927
2002-11-12 01:41:04 +00:00
Tim Coleman 06104bff0c 2002-11-09 Tim Coleman <[email protected]>
* list:
                Add new internal tds classes
        * System.Data.Common/DbDataAdapter.cs:
        * System.Data.SqlClient/SqlDataAdapter.cs:
                Change event calling system
        * System.Data.SqlClient/SqlClientPermission.cs:
        * System.Data.SqlClient/SqlClientPermissionAttribute.cs:
        * System.Data.SqlClient/SqlDataReader.cs:
                Add comments
        * System.Data.SqlClient/SqlCommand.cs:
                Some changes to make consistent with .NET based on Sql server traces
                Implement command timeout
        * System.Data.SqlClient/SqlCommandBuilder.cs:
                Make sure that we only build a command if key info found
        * System.Data.SqlClient/SqlConnection.cs:
                Change event calling system
                Some changes to make consistent with .NET based on Sql server traces
                Implement connection timeout
        * System.Data.SqlClient/SqlConnectionPool.cs:
                Implement connection timeout
        * System.Data.SqlClient/SqlError.cs:
                Implement ToString ()
        * System.Data.SqlClient/SqlException.cs:
                Mucho implementation and cleanup
        * System.Data.SqlClient/SqlParameter.cs:
                Implement Clone ()
        * System.Data.SqlClient/SqlParameterCollection.cs:
                Code cleanup
        * System.Data.SqlClient/SqlTransaction.cs:
                Move some of the transaction creation to SqlConnection to be consistent
                with .NET SQL traces

svn path=/trunk/mcs/; revision=8906
2002-11-10 00:36:17 +00:00
Tim Coleman 3f9d2e0d6f 2002-11-08 Tim Coleman <[email protected]>
* System.Data/DataRow.cs:
        * System.Data/DataTable.cs:
                Some fix-ups related to the DbDataAdapter to make it work.
        * System.Data.Common/DbDataAdapter.cs:
                Fix the Fill () and Update () methods.  These now work
                fairly well.  Need mucho testing.
        * System.Data.SqlClient/SqlCommandBuilder.cs:
                Support table mappings and parameter source versions now.
        * System.Data.SqlClient/SqlConnection.cs:
        * System.Data.SqlClient/SqlTransaction.cs:
                Add set accessor for transaction so that SqlTransaction.Commit ()
                will remove itself from the connection.
        * System.Data.SqlClient/SqlDataAdapter.cs:
                Update/Insert/Delete command should be null by default.
        * System.Data.SqlClient/SqlException.cs:
                Remove a TODO attribute
        * System.Data.SqlClient/SqlRowUpdatingEventArgs.cs:
                Properly handle the SqlCommand object

svn path=/trunk/mcs/; revision=8889
2002-11-08 19:13:08 +00:00
Tim Coleman ce80d58963 2002-11-07 Tim Coleman <[email protected]>
* System.Data.Common/DbDataAdapter.cs:
                Remove NotImplementedException in Dispose
        * System.Data.Common/FieldNameLookup.cs:
                Should be sealed
        * System.Data.SqlClient/SqlCommand.cs:
                Fix CommandText accessor (stack overflow)
                Implement DeriveParameters method
        * System.Data.SqlClient/SqlCommandBuilder.cs:
                Implement this class
        * System.Data.SqlClient/SqlConnection.cs:
                Change application name to "Mono SqlClient Data Provider"
        * System.Data.SqlClient/SqlDataReader.cs:
                Add new schema information
        * System.Data.SqlClient/SqlError.cs:
        * System.Data.SqlClient/SqlErrorCollection.cs:
                Remove internal methods, TODO attributes
        * System.Data.SqlClient/SqlParameter.cs:
                Add new internal constructor for DeriveParameters use
        * System.Data.SqlClient/SqlParameterConverter.cs:
                Add missing methods based on class status

svn path=/trunk/mcs/; revision=8864
2002-11-07 06:07:01 +00:00
Tim Coleman fcf980c6cf 2002-11-04 Tim Coleman <[email protected]>
* list:
                Add Mono.Data.TdsClient.Internal.TdsInternalError
                Add Mono.Data.TdsClient.Internal.TdsInternalErrorCollection
                Add Mono.Data.TdsClient.Internal.TdsInternalErrorMessageEventHandler
                Add Mono.Data.TdsClient.Internal.TdsInternalErrorMessageEventArgs
                Add Mono.Data.TdsClient.Internal.TdsInternalInfoMessageEventHandler
                Add Mono.Data.TdsClient.Internal.TdsInternalInfoMessageEventArgs
                Remove Mono.Data.TdsClient.Internal.TdsPacketErrorResult
                Remove Mono.Data.TdsClient.Internal.TdsPacketErrorResultCollection
                Remove Mono.Data.TdsClient.Internal.TdsPacketMessageResult
        * System.Data.Common/RowUpdatedEventArgs.cs:
        * System.Data.Common/RowUpdatingEventArgs.cs:
                Implement
        * System.Data.SqlClient/SqlCommand.cs:
        * System.Data.SqlClient/SqlDataReader.cs:
        * System.Data.SqlClient/SqlTransaction.cs:
                Remove checks for errors.  These are now handled by events
        * System.Data.SqlClient/SqlConnection.cs:
        * System.Data.SqlClient/SqlError.cs:
        * System.Data.SqlClient/SqlException.cs:
        * System.Data.SqlClient/SqlInfoMessageEventArgs.cs:
                Add event handlers and triggers for errors, messages, state change
        * System.Data.SqlClient/SqlParameter.cs:
                Re-add refreshproperties
        * System.Data.SqlClient/SqlRowUpdatedEventArgs.cs:
        * System.Data.SqlClient/SqlRowUpdatedEventHandler.cs:
        * System.Data.SqlClient/SqlRowUpdatingEventArgs.cs:
        * System.Data.SqlClient/SqlRowUpdatingEventHandler.cs:
                Implement

svn path=/trunk/mcs/; revision=8825
2002-11-05 04:27:25 +00:00