Commit Graph
811 Commits
Author SHA1 Message Date
Alexander Köplinger ddcfc42070 Cleanup namespace names of class lib tests to follow convention
A couple of the test suites didn't follow the MonoTests.<namespace of class under test> naming convention for the namespace.
2014-09-04 18:55:58 +02:00
Matthew Leibowitz a3c1bebc45 [system.data] DataRows with a NULL RowError incorrectly indicated HasError:
- MS.NET allows RowError to be set to NULL, but will convert it to string.Empty
2014-09-01 11:03:03 -07:00
Zoltan Varga 03e4fe45d7 Disable a sys.data test which fails on wrench because of an old sqlite version. 2014-09-01 12:51:53 -04:00
Zoltan Varga 03aee949f1 Merge pull request #1200 from akoeplinger/remove-jvm
[Cleanup] Remove TARGET_JVM
2014-08-28 19:17:43 -04:00
Alex Rønne Petersen 0cdfb23e29 Merge pull request #1172 from roji/datarow_null
Fix DataRow error management
2014-08-21 14:59:28 +02: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
Alexander Köplinger 0450000dc4 [Cleanup] Removed a bunch of superfluous .csproj and .sln files
Most of these files weren't updated in the last >5 years and serve no purpose today, so they only clutter the repository.
2014-08-06 18:02:30 +02:00
Shay Rojansky 416c5e9df4 Correct code review comments on test 2014-08-06 17:37:51 +03:00
Shay Rojansky 566646719f Test uses SQLite in-memory DB for test
Also spaces to tabs
2014-07-22 05:56:33 +00:00
Shay Rojansky c0d6c47c6b Added test for DataRow error 2014-07-21 09:10:08 +00:00
Matthew Leibowitz 7f8d148ec2 [system.data] Appended the fix to correct the whitespace Expression and argument checking
- Whitespace Espressions:
 -- if a column expression is a pure whitespace, use an empty string instead
 -- if a column expression is surrounded by whitespace, preserve whitespace
 -- if a column expression is null/empty, use an empty string
 - Get a row's column value:
 -- make sure we throw exceptions if the column we are looking at is null
 -- make sure we throw exceptions if we can't find the column with the provided name
2014-06-27 20:56:37 +02:00
Matthew Leibowitz 19908c6b94 [system.data] BUGFIX: fixes issue with expression columns and IsNull:
- bugzilla.xamarin.com issue 20925
 - if an expression column was added ayer there were rows, and then IsNull is called, the result is incorrect (it will always be true)
2014-06-27 13:43:12 +02:00
Mika Aalto ef4ed1a61f Removed unneeded NET_2_0 ifdefs 2014-05-15 17:17:44 -04:00
Mika Aalto ccd93fc95a Added implementation and unit tests for GetFieldValue, GetStream and GetTextReader methods in DbDataReader class.
Used https://github.com/matthid/mono/commit/51e808b3836e9ba32901762ea23941ee60b2746d as reference.
2014-05-15 17:17:44 -04:00
Alexis Christoforides ea464418b5 Merge pull request #920 2014-04-28 18:51:41 -04:00
Alexis Christoforides 49ac34bc80 Fixed xamarin #18898 # / novell #595899
DataRowView indexer should not break on "completed" added rows (any rows other than the IsNew one)
2014-04-18 18:08:16 -04:00
Eberhard Beilharz 6505533785 [Sys.Data] Add unit tests for Novell bug #519648
These unit tests demonstrate the difference to .NET
(https://bugzilla.novell.com/show_bug.cgi?id=519648).
2014-02-27 17:33:06 +01:00
Zoltan Varga a7ba26f942 Disable some System.Data tests which are expected to fail in the mobile profile. 2013-04-11 16:56:18 +02:00
Marek Safar dbdab197a7 Make table name comparison dataset locale specific. Fixes #7899 2013-03-29 18:36:55 +01:00
Rodrigo Kumpera 02b64abba2 Fix multiple issues with System.Data.DataRow::SetParentRow. Fixes #7900.
* DataRow.cs: There is a total of issues been addressed here:

	1) SetParentRow (null) would crash instead of setting all relation
	columns to DBNull.

	2)SetParentRow (parentRow, relation) did not check if both row and relation
	belong to the same table.

	3)SetParentRow(parentRow) when the child table has multiple relations to different
	tables, we should only process those that belong to the table of parentRow.
2013-03-20 17:49:59 -04:00
Sebastien Pouliot 325ed45145 Do not assume the unit tests can write in the application directory (e.g. iOS devices). 2013-03-19 15:04:49 -04:00
Sebastien Pouliot be0ecab083 Disable CAS permission tests for MOBILE profile 2013-03-19 15:04:09 -04:00
Marek Safar a4915d561e Update mobile tests 2013-03-07 16:34:24 +01:00
Marek Safar 8bdf16df8e Remove NET_2_0 2012-08-13 10:47:32 +01:00
Marek Safar 69729c7e40 Disable more failing tests 2012-06-18 16:30:29 +01:00
Marek Safar 3f8e66f47c Fix some failing tests 2012-06-14 15:08:08 +01:00
Miguel de Icaza ae0feab435 Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported 2012-06-01 18:04:24 -04:00
Duncan Mak 9da11055f5 [System.Data/Test] Don't hard-code newline in the string, fixes failure in DataTableReadXmlSchemaTest.TestSampleFileImportSimple. 2012-06-01 17:53:43 -04:00
Robert Wilkens 410fbd4e87 This is the associated unit test for the Ximarin Bugzilla #853 bug...
Confirmed it fails without the bug fix, and passes with it.

Also confirmed again that no other System.Data tests failed that weren't
previously failing.  With this test, there were 9 failures before the patch
is applied, and 8 failures after the patch is applied.  Also tested before
I changed anything and previous to my changes 8 tests in System.Data were
already failing.  This patch previosuly committed in other words does not
introduce any new bugs to the system.data tests.
2012-05-25 19:27:46 -04:00
Sebastien Pouliot a0769006c6 Add fix and test case from bnc #650402 2012-05-16 16:52:17 -04:00
Rolf Bjarne Kvinge 656ca11722 System.Data: DataTable.ImportRow should be able to handle columns with different types. Fixes #2926. 2012-01-17 22:15:51 +01:00
Rolf Bjarne Kvinge 7aaffd29b0 [System.Data] Fix sorting in DataView when changing sort value/default sort several times. 2011-12-13 23:12:57 +01:00
Oleg Petrov 865b9ea2c9 2 new tests for ctors 2011-12-03 16:17:58 +04:00
Oleg Petrov 729ddf6270 These tests show difference between original .NET behaviour and current Mono implementation 2011-12-01 03:40:16 +04:00
Miguel de Icaza 2852ed0b59 Update copyrights 2011-09-13 18:26:13 -04:00
Rolf Bjarne Kvinge 36469066f5 [System.Data] Delay column expression evaluation after all the columns have been cloned when cloning a table. Fixes #666.
When cloning a table we loop over all the columns and clone them, but if a column
contains an expression with a reference to a later column, we'll throw an exception
unless we delay the expression compilation until all the columns have been added
to the new table clone.

So I've split out the expression compilation logic from the Expression property setter,
and now the column Clone method only sets the field. The Clone caller is responsible
for calling CompileExpression on the cloned column after adding all the cloned columns to
the cloned table.
2011-09-13 14:07:27 +02:00
Rolf Bjarne Kvinge 6c7d6c034a [System.Data] Properly clone a column's extended properties when cloning a table. Fixes #668. 2011-09-13 13:01:16 +02:00
Miguel de Icaza 8cf313456e Various fixes to the Expression parser, the fixes include:
* Fixes to the SUBSTRING and TRIM function to allow
	  a wider range of functions to be passed as
	  parameters.   This fixes xamarin #665

	* Fix to the Parser.jay grammar to eliminate the
	  reduce/reduce conflicts.

	* Dropping the string concatenation code and instead
	  use the existing arithmetic addition operator which
	  also fixes the concatenation operation in the presence
	  of null values

	* Adds the null literal

With the associated test cases.
2011-09-09 22:02:56 -04:00
Atsushi Eno 1d5a375459 DiffLoader didn't handle encoded name and caused mismatch between .NET. 2011-08-31 17:49:36 -07:00
David Schmitt f4b240e9cf reformat to coding guidelines 2011-04-11 21:58:59 +02:00
David Schmitt 29cc973a08 Update to NUnit 2.5 syntax 2011-04-11 21:53:11 +02:00
Veerapuram Varadhan 094404cd57 [ado.net]fixes 672113 - Keep a copy of columns array in constraints than
a reference
2011-03-15 22:47:23 +05:30
Carsten Schlote 2392c6a50d Extended CloneCopy() test with ReadOnly field
- It is recommended to set auto-increment fields to ReadOnly. When
  calling Copy() the check for ReadOnly must be omitted, otherwise
  you get an exception.
  The RadOnly attribute is set for the parent "Id" field to test
  proper handling of read-only fields.
- Source reindention and cleanups.

Signed-off-by: Carsten Schlote <[email protected]>
2011-02-14 10:52:22 -05:00
Veerapuram Varadhan a7bfa16bd9 Added schema file to fix test break 2011-01-30 14:19:29 +05:30
Veerapuram Varadhan e2e8734262 Don't run the test. Fixes test break. 2011-01-30 14:19:29 +05:30
vvaradhan ce15f042af 2010-10-01 Veerapuram Varadhan <[email protected]>
** Fixes #582732 - Patch by Jeffrey Alvarez <[email protected]>
	* DataColumn.cs (Clone): Deep copy the ExtendedProperties
	collection.
	* XmlSchemaDataImporter.cs: Support import of extended
	properties.
	* XmlSchemaWriter.cs: Fix exception by writing the extended
	properties before simpletype element.
2010-10-04 16:44:44 +05:30
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