Marek Safar [Fri, 2 Jan 2009 15:45:24 +0000 (15:45 -0000)]
New test.
svn path=/trunk/mcs/; revision=122338
Marek Safar [Fri, 2 Jan 2009 13:44:23 +0000 (13:44 -0000)]
2009-01-02 Marek Safar <marek.safar@gmail.com>
A fix for bug #462950
* class.cs, decl.cs: Use full explicit name when defining automatic
property backing field.
svn path=/trunk/mcs/; revision=122334
Ivan Zlatev [Fri, 2 Jan 2009 13:27:10 +0000 (13:27 -0000)]
2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
* DataViewManager.cs: Implement all MonoTODO. Fixes the WinForms
DataBinding unit tests.
svn path=/trunk/mcs/; revision=122333
Marek Safar [Fri, 2 Jan 2009 13:02:41 +0000 (13:02 -0000)]
New test.
svn path=/trunk/mcs/; revision=122332
Marek Safar [Fri, 2 Jan 2009 12:56:48 +0000 (12:56 -0000)]
build 1.1 profile fix
svn path=/trunk/mcs/; revision=122330
Marek Safar [Fri, 2 Jan 2009 12:54:00 +0000 (12:54 -0000)]
2009-01-02 Marek Safar <marek.safar@gmail.com>
A fix for bug #462592
* pending.cs: Emit type arguments for generic proxy method.
svn path=/trunk/mcs/; revision=122329
Ivan Zlatev [Fri, 2 Jan 2009 12:37:19 +0000 (12:37 -0000)]
2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: Fix crashes caused by assigning negative values to
ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than
the column/row heights/widths.
svn path=/trunk/mcs/; revision=122325
Ivan Zlatev [Fri, 2 Jan 2009 12:18:07 +0000 (12:18 -0000)]
2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: Non-autogenerated columns that have a data property
set that exists in the current datasource should be set to be data-bound.
svn path=/trunk/mcs/; revision=122324
Ivan Zlatev [Fri, 2 Jan 2009 12:17:46 +0000 (12:17 -0000)]
2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: Fix column sorting for columns containing null
values. A "null" value is not always "null" (e.g could be String.Empty)
and thus parsing numeric types throwed an exception for "null" values.
svn path=/trunk/mcs/; revision=122323
Ivan Zlatev [Fri, 2 Jan 2009 01:01:03 +0000 (01:01 -0000)]
2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: Detach the editing control when the edit is
finished.
svn path=/trunk/mcs/; revision=122322
Ivan Zlatev [Thu, 1 Jan 2009 23:02:45 +0000 (23:02 -0000)]
2009-01-02 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: Multiple fixes to handle last column/row removal
and cell movement after that instead of throwing exceptions.
svn path=/trunk/mcs/; revision=122321
Ivan Zlatev [Thu, 1 Jan 2009 23:02:41 +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=122320
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
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
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
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
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
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
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
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
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
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
Jonathan Pobst [Wed, 31 Dec 2008 23:47:27 +0000 (23:47 -0000)]
fix build
svn path=/trunk/mcs/; revision=122309
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
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
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
Jonathan Pobst [Wed, 31 Dec 2008 16:12:02 +0000 (16:12 -0000)]
Fix tests.
svn path=/trunk/mcs/; revision=122298
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
Massimiliano Mantione [Wed, 31 Dec 2008 11:01:37 +0000 (11:01 -0000)]
Updated profiler documentation.
svn path=/trunk/mono/; revision=122288
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
Massimiliano Mantione [Wed, 31 Dec 2008 11:01:16 +0000 (11:01 -0000)]
Fixes for the stat profiler.
svn path=/trunk/mono/; revision=122286
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
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
Gert Driesen [Tue, 30 Dec 2008 21:24:56 +0000 (21:24 -0000)]
* SqlConnectionTest.cs: Improve Database test.
svn path=/trunk/mcs/; revision=122270
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Gert Driesen [Tue, 30 Dec 2008 12:08:45 +0000 (12:08 -0000)]
Set eol-style.
svn path=/trunk/mcs/; revision=122236
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
Marek Safar [Tue, 30 Dec 2008 11:41:39 +0000 (11:41 -0000)]
New test.
svn path=/trunk/mcs/; revision=122234
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
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
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
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
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
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
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
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
Gert Driesen [Tue, 30 Dec 2008 01:44:43 +0000 (01:44 -0000)]
* SqlGuidTest.cs: Fixed line endings.
svn path=/trunk/mcs/; revision=122217
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
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
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
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
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
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
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
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
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
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
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
Marek Safar [Mon, 29 Dec 2008 11:28:50 +0000 (11:28 -0000)]
New tests.
svn path=/trunk/mcs/; revision=122181
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
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
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
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
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
Marek Safar [Sun, 28 Dec 2008 14:44:29 +0000 (14:44 -0000)]
New tests.
svn path=/trunk/mcs/; revision=122159
Marek Safar [Sun, 28 Dec 2008 14:44:13 +0000 (14:44 -0000)]
New tests.
svn path=/trunk/mcs/; revision=122158
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
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
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
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
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
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
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:47:35 +0000 (07:47 -0000)]
Use IndexOf (char)
svn path=/trunk/mcs/; revision=122122
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:46:26 +0000 (07:46 -0000)]
Use IndexOf (char)
svn path=/trunk/mcs/; revision=122121
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:43:17 +0000 (07:43 -0000)]
Use IndexOf (char)
svn path=/trunk/mcs/; revision=122120
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:41:04 +0000 (07:41 -0000)]
Use IndexOf (char)
svn path=/trunk/mcs/; revision=122119
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:38:51 +0000 (07:38 -0000)]
Use IndexOf (char)
svn path=/trunk/mcs/; revision=122118
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:38:03 +0000 (07:38 -0000)]
Use IndexOf (char)
svn path=/trunk/mcs/; revision=122117
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:36:22 +0000 (07:36 -0000)]
Use IndexOf (char)
svn path=/trunk/mcs/; revision=122116
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:34:53 +0000 (07:34 -0000)]
Use IndexOf (char)
svn path=/trunk/mcs/; revision=122115
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:34:03 +0000 (07:34 -0000)]
Use IndexOf (char)
svn path=/trunk/mcs/; revision=122114
Gonzalo Paniagua Javier [Thu, 25 Dec 2008 07:33:10 +0000 (07:33 -0000)]
Use IndexOf (char)
svn path=/trunk/mcs/; revision=122113
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
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
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
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