Commit Graph
2588 Commits
Author SHA1 Message Date
Paolo Molaro d75c928423 Added the new mobile profile to the build. 2011-09-15 17:42:29 +02: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
Chris Toshok 058515940f prepend $(CURDIR) to jay input files so that the debugging info references the right .jay 2011-08-30 17:06:03 -07:00
Igor Tkachev 5d6fde8d29 SqlDbType missing value. 2011-05-11 23:09:38 -04:00
Igor Tkachev e9b80a8495 SqlDbType missing values. 2011-05-11 16:26:15 -04:00
Veerapuram Varadhan 71eb517c49 [ado.net]bugfix:688773 - Assign default value to columns that does not
exist in the row that is being imported.
2011-05-05 03:29:54 +05:30
Veerapuram Varadhan 800f2c28cd [ado.net]BugFix 663914 - Retain original version of a col when
(De)Serialization of DataSet and DataTables.
2011-05-05 03:29:53 +05:30
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 0eed179e75 [bugfix][ado.net odbc]Fixes #676368 - make it thread safe to release
underlying statement handles and check for the validity of the same
before attempting to release them.  Fixes random crashes.
2011-03-22 00:58:08 +05:30
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
Carsten Schlote 6afc6ea42f Fixes for broken RO check
- When calling GetChanges() the ReadOnly check for DataCalumns must be
  turned off, as otherwise data of readonly columns can't be cloned
  into new rows for the new created DataSet/dataTable

Signed-off-by: Carsten Schlote <[email protected]>
2011-02-14 10:51:40 -05:00
Miguel de Icaza 38253abf8c Add solution files 2011-02-12 22:09:49 -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 367fe78d52 2010-12-07 Veerapuram Varadhan <[email protected]>
** Fixes #456234 - Patch by [email protected]
	* OdbcDataReader.cs (GetValue): Handle SQL_NO_TOTAL sanely and
	use corresponding Decoder.GetChars instead of Encoding.GetString.
2010-12-07 20:39:47 +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
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
Jb Evain b2b1e43507 Fix the monodroid and monotouch profile builds 2010-09-08 18:48:36 +02:00
Jb Evain 06a360ed49 Fix the mobile_System.Data include 2010-09-08 18:48:34 +02:00
Jb Evain db99fdfa94 Factorize the System.Data monotouch and monodroid sources into a mobile.sources 2010-09-08 18:48:34 +02:00
Jb Evain 432d531126 Enable the System.Data build for monodroid 2010-09-08 18:48:29 +02:00
vvaradhan 5b5d0dc864 2010-07-28 Veerapuram Varadhan <[email protected]>
** Fixes #584833
	* SqlCommand.cs (DeriveParameters): Support procedure name
	nomenclature of the form <database>.<user>.<procname> .
2010-07-28 12:52:03 +05:30
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller.  I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
2010-07-26 02:20:13 +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
vvaradhan 4613d5956f 2010-07-23 Veerapuram Varadhan <[email protected]>
** Fixes #623451
	* DataColumnCollection.cs (MoveColumn): Fix shifting of
	DataColumn according to the direction of movement.
2010-07-23 22:28:47 +05:30
Veerapuram Varadhan 2ec0a00139 2010-07-23 Veerapuram Varadhan <[email protected]>
** Fixes #565616 - Based on Patch by Hubert FONGARNAND
	* DataContainer.cs (GetContainerData): If typecode is string,
	call Convert.ToString() irrespective of whether value is
	IConvertible or not.
2010-07-23 18:55:50 +05:30
Veerapuram Varadhan 3ee06f75d7 2010-06-23 Veerapuram Varadhan <[email protected]>
** Fixes #581679
	* DataRelationCollection.cs (Add, Remove): Use DataRelation obj
	instead of this when raising OnCollectionChang(ing, ed) events.

svn path=/trunk/mcs/; revision=159447
2010-06-23 18:59:31 +00:00
Jonathan Chambers a3ef4c8294 2010-06-15 Jonathan Chambers <[email protected]>
* Tds.cs: Add {} around default switch case.
	* OdbcDataReader.cs: Remove unneeded cast on ref parameter

svn path=/trunk/mcs/; revision=158984
2010-06-15 22:48:09 +00:00
Jonathan Chambers 37d8cf2f6b 2010-06-15 Jonathan Chambers <[email protected]>
* Add more projects for net_2_0 profile build.

svn path=/trunk/mcs/; revision=158981
2010-06-15 22:24:14 +00:00
Veerapuram Varadhan e394c58e7b 2010-06-15 Veerapuram Varadhan <[email protected]>
** Fixes #613087
	* Tds.cs (ProcessLoginAck): Fix server version being compared in
	the switch-case.
	* Tds70.cs (BuildPreparedParameters, BuildProcedureCall): Set
	* default
	precision to 18 as used by MS.Net when connecting to SqlServer
7.0.
	(BuildExec, ExecRPC): Marked protected in order to be used by
Tds80
	and henceforth.
	* Tds80.cs (Execute): Separated from Tds70 to include Tds80
	* changes.

svn path=/trunk/mcs/; revision=158951
2010-06-15 16:12:36 +00:00
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
Veerapuram Varadhan 3e47613836 2010-04-11 Veerapuram Varadhan <[email protected]>
** Fixes #591443
	* DataColumn.cs (Clone): Use propert to clone Expression as it
	* builds
	compiled expression also, if any.

svn path=/trunk/mcs/; revision=155216
2010-04-11 21:14:41 +00:00
Veerapuram Varadhan 653d4096a1 2010-04-10 Veerapuram Varadhan <[email protected]>
** Fixes #589482
	* DataColumn.cs (set_DataType): Preserve autoIncrement value
	for Decimal types as well.

svn path=/trunk/mcs/; revision=155202
2010-04-10 18:44:09 +00:00
Veerapuram Varadhan 0966434fbc 2010-04-09 Veerapuram Varadhan <[email protected]>
** Fixes #576520 - Based on a patch by Greg SIROU
<[email protected]>
	* DataSet.cs (WriteColumnAsElement): Handle system.object types
	* sanely.

svn path=/trunk/mcs/; revision=155178
2010-04-09 23:31:43 +00:00
Veerapuram Varadhan c9a69a096b 2010-04-09 Veerapuram Varadhan <[email protected]>
** Fixes #590232
	* DataColumn.cs (Clone): Clone extended properties as well

svn path=/trunk/mcs/; revision=155165
2010-04-09 17:20:54 +00:00
Veerapuram Varadhan a13bcfb79c changelog changes
svn path=/trunk/mcs/; revision=154271
2010-03-26 13:45:50 +00:00
Veerapuram Varadhan 7c38ba4b7c 2010-03-26 Veerapuram Varadhan <[email protected]>
** Fixes #564833/580736
    * DbDataAdapter.cs (*Command): Fix for .NET compatibility which
    supports both type of adapters with/without discrete command
    instances.

svn path=/trunk/mcs/; revision=154270
2010-03-26 13:45:38 +00:00
Marek Habersack 242362da41 2010-02-10 Marek Habersack <[email protected]>
* XmlSchemaDataImporter.cs: the <connections> element might be
	empty - make sure FirstChild of the element is not null before
	attempting to use it. Fixes bug #578587

svn path=/trunk/mcs/; revision=151201
2010-02-10 09:32:59 +00:00
Jonathan Pobst 1c0e37a580 2010-01-21 Jonathan Pobst <[email protected]>
* DateComparisonTest.cs: Failing test TestDateComparisonLeft
	marked NotWorking.  Bug filed as 572725.

svn path=/trunk/mcs/; revision=149994
2010-01-21 17:07:48 +00:00