Commit Graph
13 Commits
Author SHA1 Message Date
Nagappan Alagappan f3144659af 2007-06-06 Nagappan A <[email protected]>
* ColumnReference.cs (Unify): Return object as it is, if object
	type is char. Fixes bug # 81625.

	* Numeric.cs (IsNumeric): Return false if object type is
	char. Fixes bug # 81625.


svn path=/trunk/mcs/; revision=78714
2007-06-06 10:38:13 +00:00
Senganal T 50d3c58572 2006-06-15 Senganal T <[email protected]>
* Test/System.Data/DataTableTest2.cs :
		- Test if the Sort Order is correct when Sort String is not
		explicitly set.
		- Test if EvaluateException is raised if filter is not a
		boolean expression.
		- Test if expression is evaluated corrected when the filter 
		is a boolean column.
	* Mono.Data.SqlExpressions/Expression.cs : 
		- EvalBoolean : throw EvaluateException unless overridden.
		- UnaryExpression.EvalBoolean : override EvalBoolean
	* Mono.Data.SqlExpressions/Like.cs, In.cs, ColumnReference.cs : override EvalBoolean 
	* System.Data/DataTable.cs :
		- Select : If Sort String is not provided, sort the result
		DataRows in Ascending Order of the Columns used in the filter

svn path=/trunk/mcs/; revision=61754
2006-06-15 12:02:57 +00:00
Senganal T a2a283996f 2006-02-03 Senganal T <[email protected]>
* Test/System.Data.SqlTypes/SqlStringTest.cs : Removed NotWorking attribute for testcases fixed
	* Test/System.Data/DataTableCollectionTest2.cs,EvaluateExceptionTest.cs,
	DataColumnTest.cs,DataRowViewTest.cs,DataRowCollectionTest2.cs,
	DataTableTest2.cs,DataTableTest.cs,DataColumnCollectionTest2.cs,
	DataColumnCollectionTest.cs,DataViewTest.cs,DataColumnTest2.cs
		- Removed 'NotWorking' attributes for the testcases fixed
		- Added few new testcases
	* System.Data.SqlTypes/SqlString.cs : 
		- GetUnicodeBytes()
		- GetNonUnicodeBytes() 
		- Constructor 
			Use Encoding class to convert between byte[] and string
	* Mono.Data.SqlExpressions/ColumnReference.cs : 
		- GetReferencedRow () 
		- GetReferencedRows() : Verify the column before getting the values.
		 	Validate the ColumnReference even when the table has no rows.
	* Mono.Data.SqlExpressions/Function.cs : Modified Eval()
		- A tmp fix to check for null. Expression.Eval needs to be modified all
		around to return DBNull.Value.
	* System.Data/DataTableCollection.cs : 
		- Remove () : Check for invalid TableName
		- Add () : Verify the table doesn't belong to another dataset
	* System.Data/DataView.cs :
		- CompleteLastAdded () : Do not raise ItemAdded Event as it is
			already raised in AddNew().
	* System.Data/DataColumn.cs :
		- Expression : Verify that the Column names in the expression are valid 
		- ResetCollectionInfo : Renamed to ResetColumnInfo
	* System.Data/DataRow.cs :
		- RejectChanges () : Reorganized the code to do the Right thing.
		- Item  : Dont check for detached and deleted rows as these are
			done elsewhere.
	* System.Data/DataRowCollection.cs :
		- Add () : Check for null value
	* System.Data/DataTable.cs :
		- PrimaryKey : Set AllowDBNull=false for all the key columns
		- ImportRow : Import the row only if it is not in Detached state. if in Deleted
			state, perform the validation when AcceptChanges/RejectChanges is called.
	* System.Data/DataColumnCollection.cs :
		- Add : Validate the column expression before adding it to the collection.
		- GetColumnDependency () : New. Get the dependencies on the column 
		- CanRemove : Move checks to GetColumnDependency
		- Clear () : Simplified code. Remove unncessary checks.Also, dont check Expression col.
		- IndexOf - Check argument.
		Overall , appropriate error msg's are thrown if Remove/Clear fails. Removed a few
		redundant checks performed and moved the common code to GetColumnDependency.

	Fixes failing testcases in System.Data.

svn path=/trunk/mcs/; revision=56531
2006-02-03 16:50:15 +00:00
Boris Kirzner db5969ed84 Added column and reference caching to ColumnReference.
svn path=/trunk/mcs/; revision=55710
2006-01-18 08:51:22 +00:00
Boris Kirzner 0dca3b3aad Implemented Equals() and GetHashCode() for IExpression classes.
svn path=/trunk/mcs/; revision=50464
2005-09-22 11:21:15 +00:00
Boris Kirzner 280b18130d Drop of Mainsoft.System.Data
svn path=/branches/Mainsoft.System.Data/mcs/; revision=43603
2005-04-26 17:11:06 +00:00
Atsushi Eno 7b8d0e6bcc 2005-02-10 Atsushi Enomoto <[email protected]>
* Comparison.cs : allow comparison between guid and string.
	* ColumnReference.cs : return guid value too. Fixed bug #72426.


svn path=/trunk/mcs/; revision=40417
2005-02-10 18:56:19 +00:00
Atsushi Eno b5b1c0c31f 2005-01-25 Atsushi Enomoto <[email protected]>
* Expression.cs, ColumnReference.cs, BooleanExpression.cs,
	  Aggregation.cs, Literal.cs : added EvalBoolean() to avoid extraneous
	  boxing in RowFilter.

	* DataTable.cs : use new IExpression.EvalBoolean() to avoid extraneous
	  boxing.


svn path=/trunk/mcs/; revision=39490
2005-01-25 10:12:14 +00:00
Sachin Kumar ec81df777c Add license and copyright to all source files in System.Data
svn path=/trunk/mcs/; revision=29688
2004-06-16 13:52:11 +00:00
Umadevi S 88c950c9cc 2004-05-12 Umadevi S <[email protected]>
* BooleanExpression.cs,ColumnReference.cs, Comparison.cs - made class/enum internal

svn path=/trunk/mcs/; revision=27154
2004-05-12 10:30:48 +00:00
Boris Kirzner 6edb8c8ad1 * ColumnReference.cs : using DataRow _inExpressionEvaluation before accessing row value to get an access to deleted rows also.
svn path=/trunk/mcs/; revision=26119
2004-04-28 07:39:07 +00:00
Juraj Skripsky 5c9c273f14 2004-03-31 Juraj Skripsky <[email protected]>
* Parser.jay, ColumnReference.cs, Comparison.cs, Functions.cs,
	Aggregation.cs : fix bugs exposed by DataColumnTest.cs.

svn path=/trunk/mcs/; revision=24867
2004-03-31 19:29:19 +00:00
Juraj Skripsky 15ee7d7d9c 2004-03-29 Juraj Skripsky <[email protected]>
* System.Data.dll.sources : added classes in Mono.Data.SqlExpressions
	* Makefile : add jay-target for Mono.Data.SqlExpressions/Parser.cs

	* ExpressionElements.cs : remove
	* DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
	Integration of new Mono.Data.SqlExpressions classes used in
	DataTable.{Select, Compute}.
	Fixes bug #55503 and lots of failures in DataTableTest.cs.

	* DataTableTest.cs : add test case for bug #55503,
	comment out meaningless test cases.

	* Initial implementation of Mono.Data.SqlExpressions.

svn path=/trunk/mcs/; revision=24700
2004-03-29 07:56:47 +00:00