* DbDataAdapter.cs: provide a Type for ToArray to avoid invalid cast
exception. Thanks to Mark Easton <[email protected]>.
svn path=/trunk/mcs/; revision=17622
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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* System.Data.Common/DbEnumerator.cs :
Throw correct exception on Reset ()
Add ColumnSize to schema table.
* System.Data.SqlClient/SqlDataReader.cs :
Add ColumnSize to schema table.
* System.Data.SqlClient/SqlCommand.cs :
Change the way that preparing is handled.
Now uses sp_prepare on the server instead of temp
stored procedures because it's the Right Thing[tm] to do.
* System.Data.SqlClient/SqlConnection.cs :
Store data readers here rather than in command
* System.Data.SqlClient/SqlDataReader.cs :
More implementation, including binary types
* System.Data.SqlClient/SqlParameter.cs :
Lowercase type name
svn path=/trunk/mcs/; revision=8746
* System.Data.Common/DbDataAdapter.cs :
Fix handling of nulls
* System.Data.Common/DbDataRecord.cs :
Change GetFieldType ()
* System.Data.Common/DbEnumerator.cs :
Add new schema information
* System.Data.Common/FieldNameLookup.cs :
Change definition of schema
* System.Data.Common/SchemaInfo.cs :
Add more information
* System.Data.SqlClient/SqlDataReader.cs :
get more schema table data
* list :
Add Mono.Data.TdsClient.Internal.TdsSchemaInfo
svn path=/trunk/mcs/; revision=8722
* System.Data.Common/FieldNameLookup.cs:
* System.Data.Common/SchemaInfo.cs:
* System.Data.SqlClient/SqlXmlTextReader.cs:
New classes added
* list :
Class list changed in build
* System.Data.SqlClient/SqlCommand.cs:
Added support for command behaviors
Refactored a bunch of code
Implement ExecuteScalar
Implement ExecuteXmlReader
* System.Data.SqlClient/SqlConnection.cs:
Moved CheckForErrors here
* System.Data.SqlClient/SqlDataAdapter.cs:
Code reformatting
* System.Data.SqlClient/SqlDataReader.cs:
Implement GetEnumerator
Fix NextResult, Read
Add SqlDataReaderEnumerator private class
* System.Data.SqlClient/SqlParameter.cs:
Move some of the Prepare code from SqlCommand to here
* System.Data.SqlClient/SqlTransaction.cs:
Move error checking to SqlConnection
svn path=/trunk/mcs/; revision=8703
* System.Data/DataRow.cs
* System.Data.Common/DbDataAdapter.cs: fix to
get Test/TestSqlDataAdapter.cs to work again
* Test/TestSqlDataAdapter.cs: removed comment
about SqlDataReader:NextResult() not being implemented; it
bas been implemented
svn path=/trunk/mcs/; revision=4947
* System.Data.Common/DbDataAdapter.cs: remove IDbCommands, except
for get accessors. These should be implemented in derived classes. See
SqlDataAdapter for clues.
* System.Data.SqlClient/SqlDataAdapter.cs: implement IDbDataAdapter
* System.Data.Common/DataAdapter.cs:
* System.Data.Common/DataTableMappingCollection.cs:
* System.Data.Common/DataTableMapping.cs:
* System.Data.Common/DataColumnMappingCollection.cs:
* System.Data.Common/DataColumnMapping.cs:
Properly (I hope!) implement all of the appropriate interfaces
for these classes.
svn path=/trunk/mcs/; revision=4908
* System.Data.SqlClient/SqlCommand.cs: include
the BaseColumnName in the schema table. Was missed before.
* System.Data.Common/DbDataAdapter.cs: Use DataTable
mappings so that the DataSet and DataTable are more closely tied.
Get schema information from the DataTable using GetSchemaTable ()
Various other little fixes
* System.Data.Common/DataColumnMappingCollection.cs:
* System.Data.Common/DataTableMapping.cs:
* System.Data.Common/DataTableMappingCollection.cs: Some
implementation, enough to be used by DbDataAdapter.
svn path=/trunk/mcs/; revision=4891
* System.Data.build: took out all excluded
files except the ones in the Test directory
because all files compile now. It does not
mean they all work or have implementations
though.
* System.Data/DataRelationCollection.cs
* System.Data/DataTableRelationCollection.cs
* System.Data/InternalDataCollectionBase.cs
* System.Data.Common/DbDataPermission.cs
* System.Data.SqlClient/SqlInfoMessageEventArgs.cs
* System.Data.SqlClient/SqlClientPermission.cs
* System.Data.SqlClient/SqlClientPermissionAttribute.cs: changes
to get all System.Data* files to compile.
* System.Data.SqlClient/SqlCommand.cs: started coding
to prevent SqlConnection and SqlCommand from doing
anyting while fetching data using SqlDataReader. Also,
started coding to undo this prevention once the
SqlDataReader is closed.
* System.Data.SqlClient/SqlConnection.cs: get database server
version. Started coding to prevent connection from
doing anything while fetching data and undo once the reader
is closed. Include events SqlInfoMessage and StateChange.
* System.Data.SqlClient/SqlDataReader.cs: start coding to
prevent connection and command from doing anything while
fetching data, and undo when closed.
* Test/PostgresTest.cs: added test to get ServerVersion
property from SqlConnection
svn path=/trunk/mcs/; revision=4742
* System.Data/DataRow.cs: Try to reduce memory
usage by only creating the original and proposed
arrays as required in BeginEdit, and then destroying
proposed during EndEdit, and original during AcceptChanges.
* System.Data.Common/DbDataAdapter.cs: Make the
startRecord and maxRecords parameters work correctly.
svn path=/trunk/mcs/; revision=4736
* System.Data.Common/DbDataAdapter.cs:
- More implementation of Fill methods
- Get rid of isDirty flag, because we can just check
if the table exists
- Do *not* remove DataTables before Filling them
- Implicitly open the connection before doing a Fill
if it does not exist.
* System.Data.SqlClient/SqlDataAdapter.cs:
- Minor fixup
* System.Data/DataTableCollection.cs:
- Add DataSet to internal, undocumented constructor
- When a table is created, set its DataSet property
- Default table name for creation is "Table1" (see .NET)
- Inherit the ArrayList list from InternalDataCollecitonBase
and maintain a hashtable between table names and
DataTables
* System.Data/DataTable.cs:
- Add internal dataSet field. This is used by
DataTableCollection when the DataTable is constructed.
* System.Data/DataSet.cs:
- Pass a reference to the DataSet when constructing the
DataTableCollection.
svn path=/trunk/mcs/; revision=4722
* System.Data.Common/DbDataAdapter.cs:
Use table.Rows.Add (itemArray) instead of
table.Rows.Add (thisRow) to provide better
abstraction.
* System.Data/DataRowCollection.cs:
Some implementation of this class.
* System.Data/InternalDataCollectionBase.cs:
Some implementation. Most notably, this now
has an enumerator so we can use foreach (DataRow row in table.Rows)
in the test classes.
* System.Data/DataTable.cs:
Since DataRowCollection now accepts a DataTable in
its internal constructor, we must pass one in.
svn path=/trunk/mcs/; revision=4706
* System.Data.Common/DbDataAdapter.cs:
Use table.Rows.Add (thisRow) instead of
table.ImportRow (thisRow)
* System.Data/DataRowCollection.cs:
Construct the ArrayList before using it
svn path=/trunk/mcs/; revision=4697
* System.Data/DataTableCollection.cs:
Fix an issue when adding a DataTable and size == 0.
Now explicitly checks if size > 0 before doing Array.Copy ()
* System.Data.Common/DbDataAdapter.cs:
Move closer to a working implementation.
Make the IDbCommand fields protected so that they can
be inherited.
* System.Data.SqlClient/SqlDataAdapter.cs:
This should inherit the IDbCommands instead of having its
own. An explicit cast is used to force conversion between
IDbCommand and SqlCommand
svn path=/trunk/mcs/; revision=4588
* System.Data.Common/DbDataAdapter.cs:
More implementation.
* System.Data.Common/DataAdapter.cs:
Correction of some of the stubbing, as well as a
little bit more implementation
svn path=/trunk/mcs/; revision=4575
* System.Data.SqlClient/SqlDataAdapter.cs:
* System.Data.Common/DbDataAdapter.cs:
Moved methods that weren't supposed to
be in SqlDataAdapter out. They should be implemented
in DbDataAdapter.
svn path=/trunk/mcs/; revision=4545
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
* System.Data/DataTableCollection.cs: more implementation.
(Count): added 'override' keyword, as pointer out by Martin.
* System.Data.Common/DataColumnMappingCollection.cs (Add, AddRange):
only call Array.Copy when there is really stuff to be copied.
(CopyTo): don't create the temporary array, it's not needed.
* System.Data.build: excluded newly added file from build.
svn path=/trunk/mcs/; revision=4084
* System.Data/DataTableRelationCollection.cs: removed, it's not
on MS SDK documentation.
* System.Data/DataTableCollection.cs: new class.
svn path=/trunk/mcs/; revision=4082