* Numeric.cs: Max/Min operations do not convert string
IConvertibles to double - they perform a simple string compare
instead.
svn path=/trunk/mcs/; revision=110722
* Comparison.cs (Compare): Should always parse the object of type
DateTime in InvariantCulture CultureInfo, Fixes Bug # 82109.
svn path=/trunk/mcs/; revision=82766
* 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
* Comparison.cs (Compare): Extra space characters issue when using
System.Data.DataTable.Select. Fixes bug # 79695.
svn path=/trunk/mcs/; revision=73353
* 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
* Tokenizer.cs (ProcessEscapes): Inspect the next character, not the one
after that.
2006-06-09 Juraj Skripsky <[email protected]>
* DataTableTest.cs (SelectEscaping): Add tests for calling Select()
with escaped string literals.
svn path=/trunk/mcs/; revision=61593
* Test/System.Data/DataColumnTest2.cs : Test if IsNull (expr1,expr2) is parsed
correctly and if expr2 is returned when expr1 evaluates to null
* Mono.Data.SqlExpressions/Parser.jay : fix the rule for IsNull. Fixes bug #78254
* Mono.Data.SqlExpressions/Functions.cs :
- IsNullFunction.Eval : If expr evaluates to null or DBNull.Value, return the
default expression value.
svn path=/trunk/mcs/; revision=60172
* 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
* Test/System.Data/DataColumnTest.cs
* Test/System.Data/DataColumnCollectionTest.cs
- Added couple of tests for Expression Columns.
* Mono.Data.SqlExpressions/Aggregation.cs
- Modified the cache to listen for RowChangedEvents.
* Mono.Data.SqlExpressions/Expression.cs
* Mono.Data.SqlExpressions/IExpression.cs
- Added a Reset Method to cleanup when a Datacolumn is removed
from a table.
* Mono.Data.SqlExpressions/Parser.jay
- Modified to check :
1.Aggregate Functions : Only for columns returning multiple values (child/local)
2.Other Functions : Only for columns that return single value (parent/local)
* System.Data/DataColumn.cs
* System.Data/DataColumnCollection.cs
- Reset the Parameters of DataColumn to Default Values when
column is removed from the Table's Collection
svn path=/trunk/mcs/; revision=55141
* Test/System.Data/DataTableTest2.cs : addded test for #76213
* Mono.Data.SqlExpressions/Numeric.cs :
- Modified the Max and Min functions to convert strings(numeric) to
double. Fixes bug #76213.
svn path=/trunk/mcs/; revision=52023
2005-08-02 Sureshkumar T <[email protected]>
* DataTableTest.cs: Select (): added a case for apos escaping.
In Mono.Data.SqlExpressions:
2005-08-02 Sureshkumar T <[email protected]>
* Tokenizer.cs: ReadString (): added an overload where the
terminator can be escaped by repeating twice.
svn path=/trunk/mcs/; revision=47912
* Parser.jay : let's use debug flag when MONO_DEBUG_SQLEXPRESSIONS
environment variable is set.
Fixed substring() function. C# cast does not allow implicit
conversion from object.
svn path=/trunk/mcs/; revision=39230