* 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
* 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
* 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
* 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