173 Commits
Author SHA1 Message Date
Alexander Köplinger 662524f2e1 [System.Data] Switch tests to use embedded test resources 2018-09-27 22:46:53 +02:00
Bernhard Urban 30fd079c90 [mcs make] introduce TEST_RUNTIME_FLAGS, analogously to TEST_RUNTIME vs. RUNTIME 2017-11-06 15:50:32 +01:00
Egor Bogatov 61559965a1 [System.Data] move to corefx (#4893)
* [System.Data] move to corefx

* [System.Data] Missing API: SqlTypesSchemaImporters

* [System.Data] Missing API: SqlNotification*

* [System.Data] Missing API: SqlDataSourceEnumerator

* [System.Data] Missing API: SQLDebugging

* [System.Data] fix build

* [System.Data] remove public API from different assemblies

* Apply corefx changes

* Hide some PropertiesTest (missing API in corefx)

* Missing API: TypedDataSetGenerator*, etc

* Missing API: SqlClientMetaDataCollectionNames

* Missing API: SqlCredential

* SqlMetaDataFactory.cs is actually sqlmetadatafactory.cs (case sensitive)

* Missing API: PoolBlockingPeriod

* Fix case-sensitive issues

* Odbc support (requires changes in corefx)

* ODBC support

* Re-enable ODBC ProviderTests

* Apply corefx changes

* temp commit: fix build

* Missing API: Microsoft.SqlServer.Server.*

* Missing API: DBDataPermission, OdbcPermission, SqlClientPermission

* Missing API: DbProviderFactoriesConfigurationHandler, DbProviderConfigurationHandler, DbProviderFactory.CreatePermission

* Missing API: DbProviderFactories

* Missing API: SqlCommand BeginXXX methods, SqlException.Message, OdbcFactory.CreatePermission

* Add System.Data.SqlClient.SqlMetaData.xml (embedded resource)

* reorganize *.sources files for win32, macos and linux

* bump corefx

* [System.Data] API: SqlDataSourceEnumerator, SqlClientFactory, SqlParameter, SqlMetaData

* [System.Data] cleanup

* [System.Data] mobile profile, cleanup

* [System.Data] Fix few odbc tests (changes are in corefx PR)

* [System.Data] fix Open_ConnectionString_DatabaseInvalid test

* [System.Data] enable all tests

* Add AsynchronousProcessing and ConnectionReset to SqlConnectionStringBuilder

* [System.Data] fix build

* fix all ProvierTests

* fix tests (files several issues against the corefx)

* system-data code cleanup

* system-data code cleanup

* add SqlTypesSchemaImporters

* remove corefx/RuntimeInformation.cs, add OleDbPermission stub

* OleDbPermission should be serializable (fixing tests)

* remove ODBC from mobile profile

* fix linux build - add 619 (obsolete) to nowarn list.

* temp commit

* fix a few api diff issues

* add OleDbType type (currently exists even in mobile profiles)

* add stubs

* Add stubs for OleDb

* improve oledb stubs

* improve oledb stubs

* improve oledb stubs

* more oledb stubs

* add xunit tests from corefx

* Add SqlClient corefx tests

* use corefx sources for System.Data.DataSetExtensions

* Remove [InternalsVisibleTo ("System.Data.DataSetExtensions")] from System.Data

* [System.Data] sync with external/corefx

* fix linux\macOS builds

* Fix xunit tests

* System.Data/Makefile cleanup

* tabify System.Data

* Rollback changes in System.Web & SqlSharpCli

* small cleanup

* [System.Data] Remove redundant .sources files

* [System.Data] update odbc Res.cs

* [System.Data] Remove redundant .sources files

* fix System.Data.dll.sources (add a blank line)

* remove TypeForwarder for DBNull and register xunit tests for System.Data

* Bump API snapshot submodule
2017-10-19 18:20:03 +02:00
Marek Safar 9b06c6a000 [System.Data] Update cas test category 2017-05-09 19:14:51 +02:00
Alexander Köplinger ceabda8a54 [corlib/System.Data] Test fixes for xammac 4.5 and watchos
The TrimSpecial() method and Windows-specific code was removed from
xammac 4.5 so reflection can't find it anymore, handle this case.

Also add a workaround for SqlParameterCollectionTest.CopyToTest()
which fails on watchos since the SqlCommand would throw a PNSE.
It's a workaround because it just makes the test ignored since we don't
set the env var that ConnectionManager.Instance.Sql reads in XI tests,
but it makes the test consistent with the other tests in the suite.
We should fix this properly later on.
2017-04-19 21:08:52 +02:00
Alexander Köplinger f11c25c426 [System.Data] Call SqlConnection.ClearAllPools() only when we had a connection
When ConnectionManager.Instance.Sql.ConnectionString throws in
SetUp() we'd still call SqlConnection.ClearAllPools() in the TearDown()
which happens for example when the connection string environment
variable is not set.

This is a problem on WatchOS since SqlConnection.ClearAllPools()
throws PlatformNotSupportedException there, making the tests fail.
Instead we now check whether the connectionString is set and only
call the method in that case.
2017-04-19 14:40:10 +02:00
Alexander Köplinger 47ca0c0ae8 Make sure .sources files end with newline
It confuses the build on Linux otherwise.
2017-04-07 14:50:16 +02:00
Egor Bogatov 11789c98ce [System.Data] Fix Azure SQL specific issues (ProviderTests) (#4622)
* [System.Data] Fix Azure SQL specific issues (ProviderTests)

* [System.Data] ChangeDatabase - Azure specific test

* [System.Data] SqlConnectionTest: use Assert.Throws instead
2017-04-05 15:12:21 +02:00
Marek Safar 9e79e88494 [System.Data] Update tests for mobile profiles 2017-03-24 14:15:41 +01:00
Marek Safar 4ab98d81cd [System.Data] Fixes tests build with mobile profiles 2017-03-23 10:15:57 +01:00
Egor Bogatov 2115cd7394 [System.Data] Integration tests (#4538) 2017-03-22 13:51:57 +01:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Alex Rønne Petersen 351e94964c Remove obsolete profiles and profile checks from the build system.
* Removed all old profiles from VALID_PROFILE checks.
* Removed most logic under checks like ifeq (net_2_0), $(PROFILE)) as
  it is dead code now that those old profiles are gone.
* Simplified the list of assemblies in mcs/class/Makefile now that we
  only have one profile.
* LIBRARY_NEEDS_POSTPROCESSING has been removed as it was only used by
  old 1.x assemblies that no longer exist.
* Build logic that sets MONO_PATH now points to mcs/class/lib/net_4_5
  instead of mcs/class/lib/net_2_0.
2015-02-03 03:41:14 +01:00
Alexander Köplinger d4d7374efc [bcl] Remove ONLY_1_1 defines from class libs
This is not used anymore.
2015-01-21 17:18:30 +01:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Alexander Köplinger 5f4b8c2cf4 [Cleanup] Removed JavaEE csproj and sln files
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:53 +02:00
vvaradhan ceefad76f1 2010-10-01 Veerapuram Varadhan <[email protected]>
** Fixes #561667
	* SqlCommand.cs (Dispose): While Disposing, set connection's
	datareader to null so the connection can be reused with another datareader.
2010-10-04 15:27:52 +05:30
vvaradhan b2285ad835 2010-09-29 Veerapuram Varadhan <[email protected]>
** Fixes failed test for smallmoney
	* Tds70.cs (WriteParameterInfo): Round money values to 4
	decimals, for smallmoney too.
2010-10-01 19:17:48 +05:30
vvaradhan 2ff8ca98f1 2010-09-20 Veerapuram Varadhan <[email protected]>
* SqlDataReaderTest.cs: Add test for bug#613087
2010-09-29 14:39:01 +05:30
vvaradhan 57e6ec2bdb test fixes 2010-09-29 14:37:37 +05:30
vvaradhan f5d5778245 2010-09-16 Veerapuram Varadhan <[email protected]>
* SqlCommandTest.cs: Add test for bug#569543
2010-09-28 20:36:55 +05:30
vvaradhan 29db32e771 2010-09-16 Veerapuram Varadhan <[email protected]>
* SqlCommandTest.cs: Add test for bug#584833
2010-09-28 20:28:44 +05:30
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Veerapuram Varadhan b664161029 2010-04-21 Veerapuram Varadhan <[email protected]>
** Fixes #595918
	* Tds70.cs (WriteParameterInfo): Write updated decimal value
	according to specified scale value.

svn path=/trunk/mcs/; revision=155912
2010-04-21 20:21:41 +00:00
Gert Driesen 812bfb22f4 * sqlserver7.sql: Added script for SQL Server 7.0, with unicode
encoding (as isql7 does not deal well with utf-8).

svn path=/trunk/mcs/; revision=139701
2009-08-11 11:47:32 +00:00
Gert Driesen 5def661365 * SqlDataReaderTest.cs: Fixes for SQL Server 7.0 / TDS 7. Avoid
catching and rethrowing AssertionException. Minor code formatting
changes.

svn path=/trunk/mcs/; revision=139244
2009-08-01 14:38:27 +00:00
Gert Driesen b5fa4ed568 * SqlCommandBuilderTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlCommandTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlConnectionTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlDataAdapterTest.cs: Added tests for Update. Fixed Fill_Test_Data,
Fill_Test_PriKey and Fill_Test_FillErrorTest to pass on SQL Server 7.0.
Avoid catching and rethrowing AssertionException. Minor improvements.
* SqlParameterTest.cs: Fixes for SQL Server 7.0 / TDS 7. Updated
ZeroLengthString to pass on 1.0 profile.
* SqlTransactionTest.cs: Fixes for SQL Server 7.0 / TDS 7.

svn path=/trunk/mcs/; revision=139242
2009-08-01 13:07:28 +00:00
Gert Driesen 3af3766d03 * app-net_1.1.config: added engine config for SQL Server 7.0. Fixed
values of clientVersion.
* app-net_2.0.config: added engine config for SQL Server 7.0. Fixed
values of clientVersion.

svn path=/trunk/mcs/; revision=139238
2009-08-01 12:01:37 +00:00
Gert Driesen 86f912a56e * SqlParameterTest.cs: Improved tests for bug #382589.
svn path=/trunk/mcs/; revision=139119
2009-07-30 19:56:59 +00:00
Gert Driesen 594407eb88 * SqlParameter.cs: Modified ConvertToFrameworkType to only perform
conversion if type of value is different from "system type". Make
DbTypeMapping hashtable available on 1.0 profile, and add missing
mappings. Wrap FormatException adding information on conversion
that failed.
* SqlParameterTest.cs: Added test for bug #526794, and failed
conversion from (zero-length) string to int. Changed spaces to tabs.

svn path=/trunk/mcs/; revision=139116
2009-07-30 19:42:59 +00:00
Veerapuram Varadhan ea3ee3d074 Test fix.
svn path=/trunk/mcs/; revision=139064
2009-07-30 12:36:07 +00:00
Veerapuram Varadhan 8d5211d815 conflict fix between trunk and local tree
svn path=/trunk/mcs/; revision=139063
2009-07-30 12:35:52 +00:00
Gert Driesen 1925fbede7 * SqlCommandTest.cs: Improved test for invalid statement to cover
CloseConnection behavior.
* SqlCommand.cs: Ensure connection is closed if CloseConnection
behavior is set, and reader could not be created.

svn path=/trunk/mcs/; revision=138854
2009-07-28 17:24:35 +00:00
Veerapuram Varadhan 7b01ff9a50 2009-05-26 Veerapuram Varadhan <[email protected]>
** Fixes #382734
	* Tds80.cs: Consider queries with Parameters as RPCs and avoid formatting
	param values as strings.  Fixes issues with locale specific string
	formatting/conversions.

	* TdsRpcProcId.cs: New - enum of rpc Ids to use with RPC packet type.

svn path=/trunk/mcs/; revision=134765
2009-05-26 16:00:45 +00:00
Veerapuram Varadhan 4dcf2b98a9 Nunit 2.4 changes and other sqlserver config fixes
svn path=/trunk/mcs/; revision=134258
2009-05-16 01:16:20 +00:00
Veerapuram Varadhan 29eccae63a Fix for bug #382589 and corresponding tests
svn path=/trunk/mcs/; revision=134257
2009-05-16 01:16:05 +00:00
Gert Driesen d401e17752 * app-net_1.1.config: Added ClientVersion to Engine section. Added
SQL Server 2000 config.
* app-net_2.0.config: Spaces to tabs.

svn path=/trunk/mcs/; revision=129380
2009-03-15 13:32:32 +00:00
Veerapuram Varadhan 5ada033601 Added test for 419224.
svn path=/trunk/mcs/; revision=127544
2009-02-20 15:48:25 +00:00
Veerapuram Varadhan fd5ac5b3ed TDS 8 changes
svn path=/trunk/mcs/; revision=125333
2009-02-02 11:05:18 +00:00
Veerapuram Varadhan b814b2bb89 TDS 8 Changes
svn path=/trunk/mcs/; revision=125324
2009-02-02 09:26:36 +00:00
Veerapuram Varadhan 15c2751851 TDS 8 changes
svn path=/trunk/mcs/; revision=125323
2009-02-02 09:24:39 +00:00
Veerapuram Varadhan 029b857515 TDS 8 changes
svn path=/trunk/mcs/; revision=125322
2009-02-02 09:23:17 +00:00
Gert Driesen 78a4d7dc71 * SqlCommandTest.cs: Added test for bug #470579.
svn path=/trunk/mcs/; revision=124992
2009-01-29 19:10:44 +00:00
Gert Driesen 4efbca7c6d * DataReaderTest.cs: Added indexer tests. Added/improved GetBytes
tests.
* IDbCommandTest.cs: Added test for ExecuteReader with CommandText
that is not initialized. Improved ExecuteScalar test.

svn path=/trunk/mcs/; revision=123750
2009-01-18 21:06:07 +00:00
Gert Driesen a8a338ba57 Added input param to sp_326182b.
svn path=/trunk/mcs/; revision=123717
2009-01-17 22:40:06 +00:00
Gert Driesen 7ecb22b4dd * SqlCommandBuilderTest.cs: Improved DeriveParameters test.
* SqlCommandTest.cs: Added InputOutput parameter to
StoredProc_ParameterTest.

svn path=/trunk/mcs/; revision=123716
2009-01-17 22:39:14 +00:00
Gert Driesen 416d711c89 Added sp with mix of input and output parameters.
svn path=/trunk/mcs/; revision=123675
2009-01-17 00:46:00 +00:00
Gert Driesen b49af57c79 Improved test for DeriveParameters.
svn path=/trunk/mcs/; revision=123674
2009-01-17 00:45:35 +00:00
Gert Driesen 42d7ff0754 Use existing sp for testing bug326182.
svn path=/trunk/mcs/; revision=123671
2009-01-16 23:42:44 +00:00