mono.git
15 years ago2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 1 Jan 2009 23:02:11 +0000 (23:02 -0000)]
2009-01-02  Ivan N. Zlatev  <contact@i-nz.net>

* DataGridViewCellCollection.cs: When cells are removed the column
indices become invalid if the cell is not the last one and have to
be refreshed.

svn path=/trunk/mcs/; revision=122319

15 years ago2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 1 Jan 2009 19:05:39 +0000 (19:05 -0000)]
2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>

* DataGridView.cs: Return false in CommitEdit if there was an error.

svn path=/trunk/mcs/; revision=122318

15 years ago2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 1 Jan 2009 18:46:45 +0000 (18:46 -0000)]
2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>

* DataGridView.cs: Remove a leftover Console.WriteLine.

svn path=/trunk/mcs/; revision=122317

15 years ago2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 1 Jan 2009 18:46:06 +0000 (18:46 -0000)]
2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>

* DataGridViewRow.cs: Access the indexer of the data manager directly
instead of the internal list.

svn path=/trunk/mcs/; revision=122316

15 years ago2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 1 Jan 2009 18:46:02 +0000 (18:46 -0000)]
2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>

* DataViewManager.cs: Hookup to the table/relations changed events and
raise ListChanged events accordingly.

svn path=/trunk/mcs/; revision=122315

15 years ago2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 1 Jan 2009 18:45:34 +0000 (18:45 -0000)]
2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>

* DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs:
Rewrite the value getting, setting, parsing, formatting logic:
   - If data-bound value get/set should actually get and set from the
     data source.
   - Make proper usage of TypeConverters for value parsing/formatting.
   - Raise DataError if setting the new value fails.
   - Get rid off the internal valueType field and get/set the ValueType
   property instead.
[Fixes bug #462051]

svn path=/trunk/mcs/; revision=122314

15 years ago2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 1 Jan 2009 18:45:20 +0000 (18:45 -0000)]
2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>

* DataGridView.cs: Rewrite the DataBinding layer:
   - Get rid off all BindingSource/IBindingList/DataSet/DataTable
   specific code.
   - Get rid off the per DataSource type column autogeneration code.
   - Use the CurrencyManager for everything that is DataBinding related.

svn path=/trunk/mcs/; revision=122313

15 years ago2009-01-01 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 1 Jan 2009 18:45:02 +0000 (18:45 -0000)]
2009-01-01  Ivan N. Zlatev  <contact@i-nz.net>

* CurrencyManager.cs: Do not fire duplicate ListChanged events.

svn path=/trunk/mcs/; revision=122312

15 years ago2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 1 Jan 2009 18:44:38 +0000 (18:44 -0000)]
2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>

* DataGridView.cs, DataGridViewRow.cs: Add a new internal property
DataManager to fetch the CurrencyManager for the DataGridView and to
spare this logic for the other components to follow.

svn path=/trunk/mcs/; revision=122311

15 years agoImprove expression parsing, esp for concat'ing expressions.
Ankit Jain [Thu, 1 Jan 2009 08:38:13 +0000 (08:38 -0000)]
Improve expression parsing, esp for concat'ing expressions.

In class/Microsoft.Build.Engine:

* Microsoft.Build.Engine.dll.sources: Add IReference.cs

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

* IReference.cs: New. Interface for Item/Metadata/PropertyReference.
* ChangeType (ToBuildItemGroup): Add 'split' param.
Track api changes.
* Expression.cs (Parse): Add a new overload with a 'split' param.
* ExpressionCollection.cs (Add): Add new overload for IReference,
remove the ones for Item/Metadata/PropertyReference.
(ConvertToArray): Implement correctly.
(ConvertToString): Track api changes.
(ConvertToITaskItem): Implement with ConvertToITaskItemArray.
(ConvertToITaskItemArray): Implement support for concat'ing expressions.
(AddItemsToArray): New.
(ConvertToITaskItemArrayFromString): Refactor a bit.
(ThrowCantConcatError): New.
* ItemReference.cs: Update.
* MetadataReference.cs: Update.
* PropertyReference.cs (ConvertToITaskItemArray): Implement.
(GetValue): New.
* BuildPropertyGroup.cs: Track api changes.
* TaskEngine.cs (PublishOutput): Improve exception message.
* Project.cs (DoLoad): Improve exception message. Add a null check.

In class/Microsoft.Build.Engine/Test/various:

* Items.cs: Add tests for expression parsing, mainly for concat'ing
expressions. Remove "NotWorking" for some tests that are working now.

svn path=/trunk/mcs/; revision=122310

15 years agofix build
Jonathan Pobst [Wed, 31 Dec 2008 23:47:27 +0000 (23:47 -0000)]
fix build

svn path=/trunk/mcs/; revision=122309

15 years ago2008-12-31 Geoff Norton <gnorton@novell.com>
Geoff Norton [Wed, 31 Dec 2008 18:45:17 +0000 (18:45 -0000)]
2008-12-31  Geoff Norton  <gnorton@novell.com>

        * mini-ppc.c: The prolog size allocated can be too small for darwin
        ppc32 under certain circumstances.  Also fix a small logic bug.

svn path=/trunk/mono/; revision=122306

15 years ago2008-12-31 Mario Carrion <mcarrion@novell.com>
Mario Carrion [Wed, 31 Dec 2008 17:51:24 +0000 (17:51 -0000)]
2008-12-31  Mario Carrion  <mcarrion@novell.com>

        * MessageBox.cs: UIA support: new properties: UIAMessage,
        UIAMessageRectangle and UIAIconRectangle.

svn path=/trunk/mcs/; revision=122303

15 years ago* Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs: Add
Sandy Armstrong [Wed, 31 Dec 2008 17:45:47 +0000 (17:45 -0000)]
* Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs: Add
  PopupButtonPanel.PopupButton.PerformClick method and
  DirComboBox.DirComboBoxItem.ToString override for UIA support.

svn path=/trunk/mcs/; revision=122302

15 years agoFix tests.
Jonathan Pobst [Wed, 31 Dec 2008 16:12:02 +0000 (16:12 -0000)]
Fix tests.

svn path=/trunk/mcs/; revision=122298

15 years ago* app-default.config: Renamed to app-net_1_1.config, and added
Gert Driesen [Wed, 31 Dec 2008 15:35:07 +0000 (15:35 -0000)]
* app-default.config: Renamed to app-net_1_1.config, and added
providerTests section.
* app-net_2.0.config: Added providerTests section and removed
mono.data section.
* Makefile: Added support for CONNECTION variable and corresponding
PROVIDER_TESTS_CONNECTION environment variable. Always rebuild test
assembly since we have no dependency check for sources in place.
Only add reference to Mono.Data on 1.1 profile. Added reference to
System.Configuration on 2.0 profile.
* sqlserver.config: Merged into app-*.config.
* odbc.config: Merged into app-*.config.
* System.Data.Connected.Tests.dll.sources: Added ConnectionConfig.cs,
EngineConfig.cs, EngineType.cs, ProviderTestsConfigurationHandler.cs
and DbDataReaderTest.cs. Removed OdbcConnectionStringBuilderTest.cs.
* ConnectionConfig.cs:  Holds information on a specific connection and
corresponding engine to test.
* EngineConfig.cs: Holds information on the capabilities and behavior
of an RDBMS engine.
* EngineType.cs: Defines different database engines supported by the
provider tests.
* ConnectionManager.cs: Use DbProviderFactory and DbConnection
on 2.0 profile. Added support for new Connection/Engine configuration.
* ProviderTestsConfigurationHandler.cs: IConfigurationSectionHandler
for the ProviderTests section.
* DataReaderTest.cs: Added tests that were previously part of
SqlClient tests but apply to all families. Improved existing
tests.
* DbDataReaderTest.cs: Added GetProviderSpecificValues error check
 tests.
* IDbCommandTest.cs: Added ExecuteNonQuery tests for empty CommandText.
Added test for bug #462947.
* OdbcCommandBuilderTest.cs: Improved GetDeleteCommand,
GetInsertCommand and GetUpdateCommand tests. Added QuotePrefix,
QuoteSuffix and QuoteIdentifier tests.
* OdbcCommandTest.cs: Improved existing tests. Added
ExecuteNonQuery and Dispose tests.
* OdbcConnectionStringBuilderTest.cs: Moved to System.Data
test suite.
* OdbcDataAdapterTest.cs: Removed extra whitespace.
* OdbcDataReaderTest.cs: Added GetBytes and GetSchemaTable
tests.
* OdbcParameterCollectionTest.cs: Improve existing tests.
* OdbcParameterTest.cs: Added tests for several data types.
* SqlCommandBuilderTest.cs: Improve Get*Command tests.
* SqlCommandTest.cs: Added test for bug #341743. Added test
for connection state after executing invalid SQL. Improved
stored procedure test to check behavior with and without
leading '@' for parameter names. Minor formatting changes.
* SqlConnectionTest.cs: Split up connection string errors
test.
* SqlDataReaderTest.cs: Improved GetInt64Test. Improved and
added GetBytes tests. Added GetSqlValues and HasRows tests.
Added GetSchemaTable test. Improved GetProviderSpecificFieldType
tests.
* SqlParameterTest.cs: Improved ParameterType test. Added
type inferrence tests.
* SqlTransactionTest.cs: Allow not working tests to run on MS.
* MySQL_5.sql: Added numeric and decimal colums with different
precision and scale. Added more rows to binary_family. Added
nchar and nvarchar columns to string_family, and added extra
data. Added time and date columns to datetime_family.
* sqlserver.sql: Added numeric and decimal colums with different
precision and scale. Added timestamp column and more rows to
binary_family. Added nchar and nvarchar columns to string_family,
and added extra data. Added sp_326182 stored procedure.
* sybase.sql: Added more rows to binary_family.

svn path=/trunk/mcs/; revision=122297

15 years agoUpdated profiler documentation.
Massimiliano Mantione [Wed, 31 Dec 2008 11:01:37 +0000 (11:01 -0000)]
Updated profiler documentation.

svn path=/trunk/mono/; revision=122288

15 years agomono-profiler-logging.c: added "save-allocation-caller" option.
Massimiliano Mantione [Wed, 31 Dec 2008 11:01:33 +0000 (11:01 -0000)]
mono-profiler-logging.c: added "save-allocation-caller" option.

svn path=/trunk/mono/; revision=122287

15 years agoFixes for the stat profiler.
Massimiliano Mantione [Wed, 31 Dec 2008 11:01:16 +0000 (11:01 -0000)]
Fixes for the stat profiler.

svn path=/trunk/mono/; revision=122286

15 years ago2008-12-31 Geoff Norton <gnorton@novell.com>
Geoff Norton [Wed, 31 Dec 2008 06:11:00 +0000 (06:11 -0000)]
2008-12-31  Geoff Norton  <gnorton@novell.com>

* MethodBody.cs: Revert r122198.  This is causing the linker to emit
a bogus System.Xml.Linq.dll which cannot be unsigned for usage in
Moonlight.

svn path=/trunk/mcs/; revision=122285

15 years ago2008-12-31 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 30 Dec 2008 22:53:55 +0000 (22:53 -0000)]
2008-12-31  Ivan N. Zlatev  <contact@i-nz.net>

* DataGridView.cs: Do not autogenerate duplicate column for a
data member that has already problematically been assigned one.
* DataGridViewTest.cs: Add a test for bug #457305.
[Fixes bug #457305]

svn path=/trunk/mcs/; revision=122276

15 years ago* SqlConnectionTest.cs: Improve Database test.
Gert Driesen [Tue, 30 Dec 2008 21:24:56 +0000 (21:24 -0000)]
* SqlConnectionTest.cs: Improve Database test.

svn path=/trunk/mcs/; revision=122270

15 years ago* Tds.cs (LoadData): Improve exception message when attempting to
Gert Driesen [Tue, 30 Dec 2008 20:49:59 +0000 (20:49 -0000)]
* Tds.cs (LoadData): Improve exception message when attempting to
read before the current position.

svn path=/trunk/mcs/; revision=122268

15 years ago* Tds.cs (LoadData): Improve exception message when attempting to
Gert Driesen [Tue, 30 Dec 2008 20:10:38 +0000 (20:10 -0000)]
* Tds.cs (LoadData): Improve exception message when attempting to
read before the current position. Update the remaining length of the
stream when skipping bytes.

svn path=/trunk/mcs/; revision=122264

15 years ago* DBConcurrencyException.cs: Marked .ctor taking DataRow [] as
Gert Driesen [Tue, 30 Dec 2008 19:58:45 +0000 (19:58 -0000)]
* DBConcurrencyException.cs: Marked .ctor taking DataRow [] as
internal so we can use it on the 1.0 profile (internally). Implemented
RowCount.
* System.Data_test.dll.sources: Added DBConcurrencyExceptionTest.cs.
* DBConcurrencyExceptionTest.cs: Added .ctor and Row(Count) tests.

svn path=/trunk/mcs/; revision=122263

15 years ago* library.make (TEST_HARNESS_OUTPUT*): Fix /labels switch.
Ankit Jain [Tue, 30 Dec 2008 17:42:44 +0000 (17:42 -0000)]
* library.make (TEST_HARNESS_OUTPUT*): Fix /labels switch.

svn path=/trunk/mcs/; revision=122255

15 years ago2008-12-30 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Tue, 30 Dec 2008 16:58:15 +0000 (16:58 -0000)]
2008-12-30  Bill Holmes  <billholmes54@gmail.com>

* socket-io.h : Changing the signature of
  ves_icall_System_Net_Sockets_Socket_Accept_internal to pass
  the blocking state.

* icall-def.h :  Changing the signature of
  System.Net.Sockets.Socket.Accept_internal to pass the blocking state.

* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
  For Windows only.  Avoid blocking when calling accept by
  querying for a connection via select.  The loop also queries
  the thread state every 1000 micro seconds for the thread
  stop state.  This will avoid the process hanging on shutdown
  when using a TcpChannel that is never connected to.

* Socket.cs (Accept_internal) :  Changing the signature to pass
  the blocking state.

Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=122252

15 years ago2008-12-30 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Tue, 30 Dec 2008 16:58:15 +0000 (16:58 -0000)]
2008-12-30  Bill Holmes  <billholmes54@gmail.com>

* socket-io.h : Changing the signature of
  ves_icall_System_Net_Sockets_Socket_Accept_internal to pass
  the blocking state.

* icall-def.h :  Changing the signature of
  System.Net.Sockets.Socket.Accept_internal to pass the blocking state.

* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
  For Windows only.  Avoid blocking when calling accept by
  querying for a connection via select.  The loop also queries
  the thread state every 1000 micro seconds for the thread
  stop state.  This will avoid the process hanging on shutdown
  when using a TcpChannel that is never connected to.

* Socket.cs (Accept_internal) :  Changing the signature to pass
  the blocking state.

Code is contributed under MIT/X11 license.

svn path=/trunk/mcs/; revision=122252

15 years ago2008-12-30 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 30 Dec 2008 15:57:12 +0000 (15:57 -0000)]
2008-12-30  Jonathan Pobst  <monkey@jpobst.com>

* ProfessionalColorTable.cs: Better detection of user's theme.
[Fixes bug #462766]

2008-12-30  Jonathan Pobst  <monkey@jpobst.com>

* IVisualStyle.cs, VisualStylesGtkPlus.cs, VisualStylesNative.cs:
Add way to get style filename.
[Fixes bug #462766]

svn path=/trunk/mcs/; revision=122248

15 years agoIn class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Ankit Jain [Tue, 30 Dec 2008 15:49:05 +0000 (15:49 -0000)]
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

* MetadataReference.cs (BuildItemGroupToITaskItems): Return unique
metadata values for unqualified references.
(BuildItemGroupToITaskItemArray): Rename to ..
(BuildItemGroupToITaskItems): .. this.
(HasTaskItem): New.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

* ProjectTest.cs (TestBatchedMetadataRef[23]): Modify to check for
multiple items with same metadata value, incase of unqualified metadata
references.
Track changes in BatchingTestTask.

In class/Microsoft.Build.Engine/Test/resources:

* TestTasks.cs (BatchingTestTask): Add specific properties
for string and string[].

svn path=/trunk/mcs/; revision=122246

15 years ago* ProcessTest.cs: Import System.Threading namespace.
Raja R Harinath [Tue, 30 Dec 2008 15:00:11 +0000 (15:00 -0000)]
* ProcessTest.cs: Import System.Threading namespace.

svn path=/trunk/mcs/; revision=122245

15 years ago* Makefile (TEST_MCS_FLAGS): Reference System.Messaging.dll.
Raja R Harinath [Tue, 30 Dec 2008 14:59:46 +0000 (14:59 -0000)]
* Makefile (TEST_MCS_FLAGS): Reference System.Messaging.dll.

svn path=/trunk/mcs/; revision=122244

15 years ago* CustomSection.cs: Only enable in the 2.0 profile.
Raja R Harinath [Tue, 30 Dec 2008 14:59:23 +0000 (14:59 -0000)]
* CustomSection.cs: Only enable in the 2.0 profile.

svn path=/trunk/mcs/; revision=122243

15 years agoMildly rewrite duplicate-inferring logic.
Raja R Harinath [Tue, 30 Dec 2008 14:58:57 +0000 (14:58 -0000)]
Mildly rewrite duplicate-inferring logic.

* Index.cs (IndexDuplicateState): Remove.
(_hasDuplicates): Remove.  Replace by ...
(know_have_duplicates, know_no_duplicates): ... these.

svn path=/trunk/mcs/; revision=122242

15 years ago2008-12-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 30 Dec 2008 14:43:40 +0000 (14:43 -0000)]
2008-12-30  Marek Safar  <marek.safar@gmail.com>

* main.c: Add METHOD_ATTRIBUTE_CHECK_ACCESS_ON_OVERRIDE.

svn path=/trunk/mono/; revision=122241

15 years ago2008-12-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 30 Dec 2008 14:42:32 +0000 (14:42 -0000)]
2008-12-30  Marek Safar  <marek.safar@gmail.com>

* tabledefs.h: Add METHOD_ATTRIBUTE_CHECK_ACCESS_ON_OVERRIDE.

svn path=/trunk/mono/; revision=122240

15 years agouse the ecma name instead of the SR name for consistency
Jb Evain [Tue, 30 Dec 2008 14:15:40 +0000 (14:15 -0000)]
use the ecma name instead of the SR name for consistency

svn path=/trunk/mcs/; revision=122239

15 years agoSet eol-style.
Gert Driesen [Tue, 30 Dec 2008 12:08:45 +0000 (12:08 -0000)]
Set eol-style.

svn path=/trunk/mcs/; revision=122236

15 years ago* DataTools.cs
Gert Driesen [Tue, 30 Dec 2008 12:06:34 +0000 (12:06 -0000)]
* DataTools.cs
* Provider.cs
* ProviderCollection.cs
* ProviderFactory.cs: Fixed line endings.

svn path=/trunk/mcs/; revision=122235

15 years agoNew test.
Marek Safar [Tue, 30 Dec 2008 11:41:39 +0000 (11:41 -0000)]
New test.

svn path=/trunk/mcs/; revision=122234

15 years ago2008-12-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 30 Dec 2008 11:41:05 +0000 (11:41 -0000)]
2008-12-30  Marek Safar  <marek.safar@gmail.com>

* expression.cs (As): Mutate all type arguments.

svn path=/trunk/mcs/; revision=122232

15 years ago* SqlXmlTest.cs: Minor improvements to tests. Marked tests as
Gert Driesen [Tue, 30 Dec 2008 10:29:34 +0000 (10:29 -0000)]
* SqlXmlTest.cs: Minor improvements to tests. Marked tests as
NotWorking/NotDotNet to fix test failures on MS.

svn path=/trunk/mcs/; revision=122231

15 years ago* DbCommandBuilder.cs: When CatalogSeparator or SchemaSeparator are
Gert Driesen [Tue, 30 Dec 2008 10:21:41 +0000 (10:21 -0000)]
* DbCommandBuilder.cs: When CatalogSeparator or SchemaSeparator are
not set (or explicitly set to null or empty string), then return
default separator character. Added value check for CatalogLocation and
ConflictOption. Removed regions.
* DbCommandBuilderTest.cs: Added tests for properties.
* OdbcCommandBuilderTest.cs: Added tests for properties.

svn path=/trunk/mcs/; revision=122230

15 years ago* DbCommandBuilder.cs: Fixed default value for ConflicOption.
Gert Driesen [Tue, 30 Dec 2008 05:11:15 +0000 (05:11 -0000)]
* DbCommandBuilder.cs: Fixed default value for ConflicOption.
* OdbcCommandBuilder.cs: Added test for ConflictOption default value.

svn path=/trunk/mcs/; revision=122227

15 years ago* OdbcCommandTest.cs: Added test for bug #341743.
Gert Driesen [Tue, 30 Dec 2008 04:33:40 +0000 (04:33 -0000)]
* OdbcCommandTest.cs: Added test for bug #341743.
* OdbcColumn.cs: Treat OdbcType.Numeric as decimal.
* OdbcConnection.cs: Keep (weak) list of commands to allow us to
dispose them (and free their corresponding statement handles) when
the connection is closed. Fixed bug #341743.
* OdbcCommand.cs: Add internal Unlink method that is invoked when the
OdbcConnection is disposed, and which frees the statement handle.
Modified ExecuteNonQuery helper to take CommandBehavior and rename
freeHandle argument to createReader. Added CommandBehavior argument
to ExecSQL. Added FreeStatement overload that takes an option to not
perform an unlink. Fixes bug #3417434.

svn path=/trunk/mcs/; revision=122226

15 years ago* DbCommandBuilder.cs: Return a zero-length string when QuotePrefix or
Gert Driesen [Tue, 30 Dec 2008 03:41:45 +0000 (03:41 -0000)]
* DbCommandBuilder.cs: Return a zero-length string when QuotePrefix or
QuoteSuffix are not set (or are set to null). Changing QuotePrefix or
QuoteSuffix after a command has been generated should result in an
InvalidOperationException.
* DbConnectionStringBuilder.cs: Added support for ODBC rules. Major
rewrite fixing many compatibility issues, and improving support for
connectionstring formats/characters.
* System.Data_test.dll.sources: Added OdbcCommandBuilderTest.cs,
OdbcConnectionStringBuilderTest.cs and DbCommandBuilderTest.cs.
* libodbc.cs: Add IdentifierQuoteChar to OdbcInfo.
* OdbcCommandBuilder.cs: Return a zero-length string when QuotePrefix
or QuoteSuffix are not set (or are set to null). Changing QuotePrefix
or QuoteSuffix after a command has been generated should result in an
InvalidOperationException. Implemented support for obtaining
character(s) for quoting identifiers from specified connection.
Modified generated SQL to match MS.
* OdbcConnectionStringBuilder.cs: Improved special casing of Driver
and Dsn keywords. Re-use implemenation of DbConnectionStringBuilder.
Improved argument checks to match MS.
* DbCommandBuilderTest.cs: Added tests for QuotePrefix and
QuoteSuffix.
* DbConnectionStringBuilderTest.cs: Added tests for both odbc and
non-odbc rules.
* OdbcCommandBuilderTest.cs: Added tests for QuotePrefix and
QuoteSuffix. Added tests for QuoteIdentifier (some still marked
NotWorking).
* OdbcConnectionStringBuilderTest.cs: Moved from ProviderTests.
Added and improved tests.

svn path=/trunk/mcs/; revision=122225

15 years ago* XmlDataDocumentTest.cs: Change spaces to tabs. Removed CWLs.
Gert Driesen [Tue, 30 Dec 2008 02:40:56 +0000 (02:40 -0000)]
* XmlDataDocumentTest.cs: Change spaces to tabs. Removed CWLs.
Restore original culture on teardown.

svn path=/trunk/mcs/; revision=122224

15 years ago* SqlDecimalTest.cs
Gert Driesen [Tue, 30 Dec 2008 02:22:07 +0000 (02:22 -0000)]
* SqlDecimalTest.cs
* SqlInt32Test.cs
* SqlCharsTest.cs
* SqlInt16Test.cs
* SqlInt64Test.cs
* SqlDoubleTest.cs: Change spaces to tabs, and remove extra tabs.
Restore original culture on teardown. Removed CWLs.

svn path=/trunk/mcs/; revision=122219

15 years ago* SqlGuidTest.cs: Fixed line endings.
Gert Driesen [Tue, 30 Dec 2008 01:44:43 +0000 (01:44 -0000)]
* SqlGuidTest.cs: Fixed line endings.

svn path=/trunk/mcs/; revision=122217

15 years ago* SqlStringTest.cs: Change spaces to tabs. Restore original culture
Gert Driesen [Tue, 30 Dec 2008 01:41:46 +0000 (01:41 -0000)]
* SqlStringTest.cs: Change spaces to tabs. Restore original culture
on teardown. Enable commented-out tests. Removed CWLs.

svn path=/trunk/mcs/; revision=122216

15 years ago* BinarySerializationTest.cs: Change culture for culture-sensitive
Gert Driesen [Tue, 30 Dec 2008 00:55:01 +0000 (00:55 -0000)]
* BinarySerializationTest.cs: Change culture for culture-sensitive
tests.
* DataColumnTest2.cs: Change culture for culture-sensitive tests.

svn path=/trunk/mcs/; revision=122213

15 years ago* DataTableTest.cs: Allow NFIFromBug55978 test to pass when MONO_PATH
Gert Driesen [Tue, 30 Dec 2008 00:52:51 +0000 (00:52 -0000)]
* DataTableTest.cs: Allow NFIFromBug55978 test to pass when MONO_PATH
is not set.

svn path=/trunk/mcs/; revision=122212

15 years ago2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 29 Dec 2008 23:43:40 +0000 (23:43 -0000)]
2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>

* DataGridView.cs: In the case where there are no autogenerated
columns and the user adds columns problematically we must generate
the rows after the very first column is added.

svn path=/trunk/mcs/; revision=122211

15 years ago* SqlDbType: Added Date and Time (2.0 only).
Gert Driesen [Mon, 29 Dec 2008 23:11:19 +0000 (23:11 -0000)]
* SqlDbType: Added Date and Time (2.0 only).

svn path=/trunk/mcs/; revision=122209

15 years ago2008-12-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 29 Dec 2008 22:35:10 +0000 (22:35 -0000)]
2008-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* DateTimePicker.cs: When increasing/decreasing the value of month
with ShowUpDown set to true, moving from december to january, and
moving from january to december should adjust the year to the next and
the previous year, respectively.
Fixes the remaining bits of #459674.

svn path=/trunk/mcs/; revision=122208

15 years ago2008-12-30 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 29 Dec 2008 22:13:02 +0000 (22:13 -0000)]
2008-12-30  Ivan N. Zlatev  <contact@i-nz.net>

* DataGridView.cs: If a new cell is selected edit mode should be
immediately enabled only if EditOnEnter is set. Whether the mouse
or not was used to select the cell is irrelevant.

svn path=/trunk/mcs/; revision=122205

15 years ago2008-12-29 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 29 Dec 2008 21:32:37 +0000 (21:32 -0000)]
2008-12-29  Ivan N. Zlatev  <contact@i-nz.net>

* DataGridView.cs: Remove a bogus ReBind call, which was causing
recursive rebinding.

svn path=/trunk/mcs/; revision=122204

15 years ago2008-12-29 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 29 Dec 2008 18:48:41 +0000 (18:48 -0000)]
2008-12-29  Sebastien Pouliot  <sebastien@ximian.com>

* Mono.Cecil.Cil/MethodBody.cs: Add HasExceptionHandlers,
HasVariables and HasScopes to avoid creating empty collections
inside Cecil. There is no HasInstruction because there's always
something if MethodDefinition.HasBody is true (i.e. a MethodBody
exists).

svn path=/trunk/mcs/; revision=122198

15 years ago2008-12-29 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 29 Dec 2008 18:30:35 +0000 (18:30 -0000)]
2008-12-29  Sebastien Pouliot  <sebastien@ximian.com>

* Mono.Cecil/MethodReturnType.cs: Override ToString so we can, by
default, display something useful about the return type.

svn path=/trunk/mcs/; revision=122197

15 years ago2008-12-29 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 29 Dec 2008 18:11:12 +0000 (18:11 -0000)]
2008-12-29  Sebastien Pouliot  <sebastien@ximian.com>

* Mono.Cecil/GenericInstanceMethod.cs,
* Mono.Cecil/GenericInstanceType.cs,
* Mono.Cecil/IGenericInstance.cs: Introduce HasGenericArguments into
the interface and implement it inside GenericInstance[Method|Type]

svn path=/trunk/mcs/; revision=122195

15 years agoNew tests.
Marek Safar [Mon, 29 Dec 2008 11:28:50 +0000 (11:28 -0000)]
New tests.

svn path=/trunk/mcs/; revision=122181

15 years ago2008-12-29 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 29 Dec 2008 11:24:42 +0000 (11:24 -0000)]
2008-12-29  Marek Safar  <marek.safar@gmail.com>

A fix for bug #462622
* anonymous.cs: Resolve anonymous type GetHashCode in unchecked
context.

svn path=/trunk/mcs/; revision=122180

15 years ago2008-12-29 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 29 Dec 2008 09:33:38 +0000 (09:33 -0000)]
2008-12-29  Marek Safar  <marek.safar@gmail.com>

A fix for bug #450782
* ecore.cs: Consider more variables of form V.I to be fixed.

svn path=/trunk/mcs/; revision=122177

15 years ago2008-12-29 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 29 Dec 2008 09:06:44 +0000 (09:06 -0000)]
2008-12-29  Marek Safar  <marek.safar@gmail.com>

A fix for bug #460712
* typemanager.cs: Core types could be imported.

svn path=/trunk/mcs/; revision=122176

15 years ago2008-12-29 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 29 Dec 2008 01:13:20 +0000 (01:13 -0000)]
2008-12-29  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_jit_compile_method_inner): Avoid holding the domain lock
while loading AOT methods.

svn path=/trunk/mono/; revision=122170

15 years ago2008-12-29 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 29 Dec 2008 00:54:50 +0000 (00:54 -0000)]
2008-12-29  Zoltan Varga  <vargaz@gmail.com>

* mini-exceptions.c: Check jit_tls->class_cast_from instead of class_cast_to
since only the former is nulled out after a successful cast. This prevents
crashes with rethrown exceptions when using --debug=casts.

svn path=/trunk/mono/; revision=122168

15 years agoNew tests.
Marek Safar [Sun, 28 Dec 2008 14:44:29 +0000 (14:44 -0000)]
New tests.

svn path=/trunk/mcs/; revision=122159

15 years agoNew tests.
Marek Safar [Sun, 28 Dec 2008 14:44:13 +0000 (14:44 -0000)]
New tests.

svn path=/trunk/mcs/; revision=122158

15 years ago2008-12-28 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sun, 28 Dec 2008 14:43:49 +0000 (14:43 -0000)]
2008-12-28  Marek Safar  <marek.safar@gmail.com>

A fix for bugs #460847, #460772, #458049, #457339, #447807
* generic.cs, parameter.cs, lambda.cs, linq.cs, anonymous.cs
statement.cs, ecore.cs, class.cs, delegate.cs, flowanalysis.cs
cs-parser.jay, driver.cs: LINQ implementation upgrade to deal with
user lambdas used inside query clauses.

svn path=/trunk/mcs/; revision=122157

15 years ago2008-12-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 26 Dec 2008 19:19:31 +0000 (19:19 -0000)]
2008-12-26 Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (get_implicit_generic_array_interfaces): Extract common
code to a helper function making it a lot easier on the eyes.

svn path=/trunk/mono/; revision=122135

15 years ago2008-12-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 26 Dec 2008 19:19:29 +0000 (19:19 -0000)]
2008-12-26 Rodrigo Kumpera  <rkumpera@novell.com>

* bug-461261.cs: New regression test.

* Makefile.am: Test added.

svn path=/trunk/mono/; revision=122134

15 years ago2008-12-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 26 Dec 2008 19:19:20 +0000 (19:19 -0000)]
2008-12-26 Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (get_implicit_generic_array_interfaces): If the internal
enumerator is an interface inflate System.Object instead of itself.

Fixes #461261.

svn path=/trunk/mono/; revision=122133

15 years agoA bug fix for 459450
Miguel de Icaza [Thu, 25 Dec 2008 17:44:52 +0000 (17:44 -0000)]
A bug fix for 459450

2008-12-25  Miguel de Icaza  <miguel@novell.com>

* ProcessTest.cs: Created a test case from bug 459450.

2008-12-25   Leszek Ciesielski <skolima@gmail.com>

* System.Diagnostics/Process.cs: Raise the
Process.OutputDataReceived and Process.ErrorDataReceived with null
arguments at the end.   This is the documented behavior:

http://msdn.microsoft.com/en-us/library/system.diagnostics.datareceivedeventargs.data.aspx

And CruiseControl.NET depended on this.   Bug #459450.

* Microsoft.CSharp/CSharpCodeCompiler.cs: Fix the code, as it
depened on the previous broken behavior.

svn path=/trunk/mcs/; revision=122125

15 years ago2008-12-24 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 25 Dec 2008 13:02:15 +0000 (13:02 -0000)]
2008-12-24  Marek Habersack  <mhabersack@novell.com>

        * WebConfigurationManager.cs: A better version of the previous
        GetSection fix. Right now the method searches for directories
        containing web.config and uses them, if found, to open the web
        configuration. If no web.config is found, web configuration is
        opened for the root application directory.

        * WebConfigurationHost.cs: made GetWebConfigFileName internal
        static, so that code can be reused from WebConfigurationManager.

svn path=/trunk/mcs/; revision=122124

15 years agoUse IndexOf (char)
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:47:35 +0000 (07:47 -0000)]
Use IndexOf (char)

svn path=/trunk/mcs/; revision=122122

15 years agoUse IndexOf (char)
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:46:26 +0000 (07:46 -0000)]
Use IndexOf (char)

svn path=/trunk/mcs/; revision=122121

15 years agoUse IndexOf (char)
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:43:17 +0000 (07:43 -0000)]
Use IndexOf (char)

svn path=/trunk/mcs/; revision=122120

15 years agoUse IndexOf (char)
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:41:04 +0000 (07:41 -0000)]
Use IndexOf (char)

svn path=/trunk/mcs/; revision=122119

15 years agoUse IndexOf (char)
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:38:51 +0000 (07:38 -0000)]
Use IndexOf (char)

svn path=/trunk/mcs/; revision=122118

15 years agoUse IndexOf (char)
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:38:03 +0000 (07:38 -0000)]
Use IndexOf (char)

svn path=/trunk/mcs/; revision=122117

15 years agoUse IndexOf (char)
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:36:22 +0000 (07:36 -0000)]
Use IndexOf (char)

svn path=/trunk/mcs/; revision=122116

15 years agoUse IndexOf (char)
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:34:53 +0000 (07:34 -0000)]
Use IndexOf (char)

svn path=/trunk/mcs/; revision=122115

15 years agoUse IndexOf (char)
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:34:03 +0000 (07:34 -0000)]
Use IndexOf (char)

svn path=/trunk/mcs/; revision=122114

15 years agoUse IndexOf (char)
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:33:10 +0000 (07:33 -0000)]
Use IndexOf (char)

svn path=/trunk/mcs/; revision=122113

15 years ago2008-12-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:31:44 +0000 (07:31 -0000)]
2008-12-25 Gonzalo Paniagua Javier <gonzalo@novell.com>

* SqlProfileProvider.cs: use IndexOf (char).

svn path=/trunk/mcs/; revision=122112

15 years ago2008-12-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:30:09 +0000 (07:30 -0000)]
2008-12-25 Gonzalo Paniagua Javier <gonzalo@novell.com>

* ServerVariablesCollection.cs: use IndexOf (char).

svn path=/trunk/mcs/; revision=122111

15 years ago2008-12-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:28:29 +0000 (07:28 -0000)]
2008-12-25 Gonzalo Paniagua Javier <gonzalo@novell.com>

* TemplateControl.cs: use IndexOf (char).

svn path=/trunk/mcs/; revision=122110

15 years ago2008-12-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:27:33 +0000 (07:27 -0000)]
2008-12-25 Gonzalo Paniagua Javier <gonzalo@novell.com>

* UrlUtils.cs: use Replace (char, char).

svn path=/trunk/mcs/; revision=122109

15 years ago2008-12-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:26:26 +0000 (07:26 -0000)]
2008-12-25 Gonzalo Paniagua Javier <gonzalo@novell.com>

* SqlRoleProvider.cs:
* SqlMembershipProvider.cs: use IndexOf (char) instead of
IndexOf (string).

svn path=/trunk/mcs/; revision=122108

15 years ago2008-12-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 24 Dec 2008 22:04:24 +0000 (22:04 -0000)]
2008-12-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* DateTimePicker.cs: Handle the "MMMM" month format.
Fixes #459674.

svn path=/trunk/mcs/; revision=122102

15 years ago2008-12-24 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 24 Dec 2008 11:00:35 +0000 (11:00 -0000)]
2008-12-24  Mark Probst  <mark.probst@gmail.com>

* mini.h: New macro for checking whether a method is final,
i.e. whether the method or its class is marked final.

* method-to-ir.c: Use the new macro for all final-checks
consistently.  Fixes the crash in the System.ServiceModel tests.

2008-12-24  Mark Probst  <mark.probst@gmail.com>

* generic-sealed-virtual.2.cs: Test case for final generic
methods.

* Makefile.am: Test added.

svn path=/trunk/mono/; revision=122086

15 years ago2008-12-22 Michael Barker <mike@middlesoft.co.uk>
Michael Barker [Wed, 24 Dec 2008 09:57:54 +0000 (09:57 -0000)]
2008-12-22  Michael Barker  <mike@middlesoft.co.uk>

* RabbitMQMessageQueue.cs:  Changed to extend MessageQueueBase to make use
of default asynchronous Receive/Peek methods.

2008-12-20  Michael Barker  <mike@middlesoft.co.uk>

* AsyncReceiveTest.cs:  New, tests for Asynchronous Receive methods.
* AsyncPeekTest.cs:  New, tests for Asynchronous Peek methods.
* MessageQueueEnumeratorTest.cs:  Removed unecesary logging.

svn path=/trunk/mcs/; revision=122085

15 years ago2008-12-21 Michael Barker <mike@middlesoft.co.uk>
Michael Barker [Wed, 24 Dec 2008 09:55:54 +0000 (09:55 -0000)]
2008-12-21  Michael Barker  <mike@middlesoft.co.uk>

* MessageQueueBase.cs:  Added optional base class that provide async
messaging support.
* CompletedEventArgs.cs:  Added for events on async methods.
* CompletedEventHandler.cs:  Added for events on async methods.
* IMessageQueue.cs:  Added method and event signatures for async messaging.
* MessagingProviderLocator.cs:  Added constant for InfiniteTimeout.
* QueueReference.cs:  Remove unecessary logging.

svn path=/trunk/mcs/; revision=122084

15 years ago2008-12-24 Michael Barker <mike@middlesoft.co.uk>
Michael Barker [Wed, 24 Dec 2008 09:54:59 +0000 (09:54 -0000)]
2008-12-24  Michael Barker  <mike@middlesoft.co.uk>

* Mono.Messaging.dll.sources, added delegate
type definitions, MessageQueueBase.cs and event
argument definitions.

svn path=/trunk/mcs/; revision=122083

15 years ago2008-12-20 Michael Barker <mike@middlesoft.co.uk>
Michael Barker [Wed, 24 Dec 2008 09:50:16 +0000 (09:50 -0000)]
2008-12-20  Michael Barker  <mike@middlesoft.co.uk>

* MessageQueue.cs:  Added implementation for async methods: BeginReceive,
BeginPeek, EndReceive and EndPeek.  Set up event handlers to propagate
Asycn ReceiveCompleted/PeekCompleted events to System.Messaging API users.

svn path=/trunk/mcs/; revision=122082

15 years agoI removed some changelog notes while merging locally
Rodrigo Kumpera [Wed, 24 Dec 2008 04:55:15 +0000 (04:55 -0000)]
I removed some changelog notes while merging locally

svn path=/trunk/mono/; revision=122073

15 years ago2008-12-24 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 24 Dec 2008 04:51:39 +0000 (04:51 -0000)]
2008-12-24 Rodrigo Kumpera <rkumpera@novell.com>

* bug-461941.cs: New regression test.

* Makefile.am: Test added.

svn path=/trunk/mono/; revision=122071

15 years ago2008-12-24 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 24 Dec 2008 04:51:28 +0000 (04:51 -0000)]
2008-12-24 Rodrigo Kumpera <rkumpera@novell.com>

* object.c (mono_runtime_invoke_array): Don't assert with
byref nullable types.

* marshal.c (mono_marshal_get_runtime_invoke): To handle
byref nullables we unbox the object and store it on the
stack.
We can't use the boxed object since it is the T of Nullable<T>
and the boxed representation of a nullable it's underlying type
or null.
We could cheat and create a boxed nullable and use the same
machinery of other byref VTs but this feels like a hack and
using the stack has the bonus of reducing heap pressure.

Fixes #461941.

svn path=/trunk/mono/; revision=122070

15 years ago2008-12-24 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 24 Dec 2008 02:15:59 +0000 (02:15 -0000)]
2008-12-24  Marek Habersack  <mhabersack@novell.com>

* HttpApplicationFactory.cs: watch for changes to web.config also
in the subdirectories.

svn path=/trunk/mcs/; revision=122069

15 years ago2008-12-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 23 Dec 2008 21:11:13 +0000 (21:11 -0000)]
2008-12-23  Sebastien Pouliot  <sebastien@ximian.com>

* GDIPlusTest.cs: Add MeasureCharacterRanges test cases around bug
#449971 and add a few delta for FP comparison.
* TestGraphics.cs: Add a few delta for FP comparison.

svn path=/trunk/mcs/; revision=122060