Commit Graph
2692 Commits
Author SHA1 Message Date
Marek Safar 5b3813b1d2 [system.data] Fixes DbEnumerator current property to clone read data. Fixes #24452 2014-11-21 10:28:04 +01:00
Marcos Henrich fa2c2870e5 Added missing files to projects csproj files. 2014-10-07 14:03:29 +01:00
Sebastien Pouliot d127a1a911 [System.Data] Add new file to the mobile_* sources build (to fix XI build) 2014-09-23 14:23:12 -04:00
Neale Ferguson a83e9cf4aa Add SqlCredential support -
- Tds.cs: Use SecureString objects for passwords; Add method to retrieve string from SecureString
- Tds42.cs: Use SecureString for passwords
- Tds50.cs: Use SecureString for passwords
- Tds70.cs: Use SecureString for passwords
- TdsConnectionParameters.cs: Use SecureString for passwords; Initialize Password parameter as cleared string; Add indicator for when password is set
- SqlConnection.cs: Use SecureString for passwords; Add SqlConnect method that accepts an SqlCredential along with the Connection string; Perform checking of parameters to ensure user/password not specified in connection string if credentials have been specified or using credentials when domain login is specified.
- SqlCredential.cs: Add new class with support for credentials
- System.Data.dll.sources: Add SqlCredential.cs to the build list
2014-09-19 11:52:52 -04:00
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 c685b21764 [Cleanup] Removed files that imported Java namespaces
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 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 4165d879cd [Cleanup] Removed net_1_1_java from Makefiles
It was once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:52 +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
Shay Rojansky 4c31accaca Fix DataRow error management
DataRow's RowError is supposed to be String.Empty to indicate
no errors, but is sometimes wrongly set to null, falsely indicating
errors. Fixed to be String.Empty.
2014-07-20 15:48:21 +03: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
Marek Safar 94f466897f [system.data] Parse numeric expressions using invariant culture. Fixes #20582 2014-06-16 12:07:25 +02:00
Miguel de Icaza 60fa2525fb [build] the csproj files can now do a full class libraries build 2014-05-25 00:47:09 -04:00
Miguel de Icaza 3599b97b57 [build] Fresh new csproj files based on the updated build system. 2014-05-23 17:15:53 -04: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
Joel Martinez e9068ebf5b [docs] documentation import for 'returns' elements. 2014-05-12 14:52:53 -04:00
Joel Martinez d4fcdb95b4 [docs] namespace documentation import. 2014-05-12 14:52:47 -04:00
Neale Ferguson 0b078d3e36 Support the datetime2 parameter type 2014-05-02 16:39:24 -04:00
Fabian König bc69c64bea [DbDataReader] Implement GetFieldValue<T> function to make mono working with EntityFramework 6.x 2014-04-29 23:35:12 +02:00
Alexis Christoforides ea464418b5 Merge pull request #920 2014-04-28 18:51:41 -04:00
Joel Martinez 6999270099 [docs] Import of Microsoft BCL Documentation.
The documentation is creative commons licensed.
2014-04-27 21:33:01 -04:00
Miguel de Icaza d79280674b Refreshed the CSProj files to use the new output build directory 2014-04-18 18:15:35 -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 0dd29f1e7f [Sys.Data] Fix Novell Bug #519648
Don't throw an exception when passing "new object[] {null}" to
DataRowCollection.Find. This makes the behaviour more compatible
with .NET. This fixes bug #519648
(https://bugzilla.novell.com/show_bug.cgi?id=519648).
2014-02-27 17:35:54 +01: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
Miguel de Icaza b57fcaa28b Merge pull request #778 from cmorris98/master
SqlBulkCopy Implementation
2014-02-12 15:25:59 -05:00
Aaron Bockover a66f333246 profiles: define xammac (Xamarin.Mac) profile
Based on the Mobile profile and modeled after
the MonoDroid profile.
2014-01-16 14:16:59 -05:00
Craig Morris e5a83e6857 SqlBulkCopy Implementation
This are the code changes to get the SqlBulkCopy procedure working on
mono.
2013-11-27 11:11:11 -07:00
Maxime Brugidou a02d0c2e9a [Bug 16186] SqlCommand.BeginExecuteInternal fix
If you use a stored procedure or a prepared statement, with
CommantType.StoredProcedure the ar variable is not set as the result of
onnection.Tds.BeginExecuteProcedure().
2013-11-15 13:14:08 +01:00
JulianHamilton d4e750970c Faster index lookup in RemoveInternal 2013-08-02 09:53:17 +09:30
Miguel de Icaza b6d1b4492f Class libraries: introduce mobile_static profile, for MonoTouch-like static builds, but not limited to iOS (WinStore, Kumpera did the work). 2013-07-30 16:51:38 -04:00
Marek Safar b888cf5f04 Update csproj files 2013-07-02 13:45:15 +02:00
Marek Safar 5ad94bd33e Fix copyright author 2013-05-09 10:33:13 +02:00
Sebastien Pouliot 1d4118c51f Fix build for mobile (ios and android) wrt recent pull request on System.Data 2013-05-03 14:41:02 -04:00
root 11471bc5a6 Implemented async methods in System.Data.Common 2013-05-03 11:56:05 +00: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