Commit Graph
55 Commits
Author SHA1 Message Date
Martin Baulig 5482c75a0a Add .gitignore's.
svn path=/trunk/mcs/; revision=128880
2009-03-09 14:14:56 +00:00
Marek Safar 02e9af391d Warnings cleanup
svn path=/trunk/mcs/; revision=111855
2008-08-28 19:08:55 +00:00
Marek Habersack dc06502c34 2008-08-18 Marek Habersack <[email protected]>
* 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
2008-08-18 10:21:44 +00:00
Konstantin Triger 3b37dd78d0 when rh expresssion is null or DBNull always return false
svn path=/trunk/mcs/; revision=93637
2008-01-23 10:27:43 +00:00
Konstantin Triger 14ca20dbb8 add support for string concat (+)
svn path=/trunk/mcs/; revision=91856
2007-12-24 12:59:33 +00:00
Joel Reed 22f03a9378 enhance parsing of Mono.Data.SqlExpressions's SUBSTRING and IIF
svn path=/trunk/mcs/; revision=86725
2007-10-01 21:00:51 +00:00
Nagappan Alagappan 1761af6e17 2007-07-26 Nagappan A <[email protected]>
* Comparison.cs (Compare): Should always parse the object of type
	DateTime in InvariantCulture CultureInfo, Fixes Bug # 82109.


svn path=/trunk/mcs/; revision=82766
2007-07-26 13:04:17 +00:00
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
Nagappan Alagappan bd81d9daf6 2007-02-23 Nagappan A <[email protected]>
* Comparison.cs (Compare): Extra space characters issue when using
	System.Data.DataTable.Select. Fixes bug # 79695.


svn path=/trunk/mcs/; revision=73353
2007-02-23 06:59:13 +00:00
Nagappan Alagappan de698a1e55 2006-12-07 Nagappan A <[email protected]>
* Parser.jay (ColumnName): Fix Invalid DataColumn Expression, bug
	# 80169.


svn path=/trunk/mcs/; revision=69167
2006-12-07 11:20:12 +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
Juraj Skripsky 5b37383e25 2006-06-09 Juraj Skripsky <[email protected]>
* 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
2006-06-09 09:17:40 +00:00
Senganal T b153361423 2006-05-02 Senganal T <[email protected]>
* 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
2006-05-02 13:25:26 +00:00
Boris Kirzner 71b116433c Fix possible NullReferenceException
svn path=/trunk/mcs/; revision=58574
2006-03-27 12:25:37 +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
Senganal T 198c1b30e6 2006-01-09 Senganal T <[email protected]>
* Mono.Data.SqlExpressions/Aggregation.cs
	* Mono.Data.SqlExpressions/Expression.cs
	* System.Data/RelatedDataView.cs
	* System.Data/DataColumn.cs
		- Resolving a name clash in IExpression

svn path=/trunk/mcs/; revision=55244
2006-01-09 17:24:10 +00:00
Boris Kirzner 563fde20d8 Fixing build.
svn path=/trunk/mcs/; revision=55223
2006-01-09 14:20:27 +00:00
Senganal T 642a2f8101 2006-01-06 Senganal T <[email protected]>
* Aggregation.cs
		- Correction in previous check-in


svn path=/trunk/mcs/; revision=55147
2006-01-06 13:28:13 +00:00
Senganal T 4fb76f622d 2006-01-06 Senganal T <[email protected]>
* 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
2006-01-06 11:29:47 +00:00
Senganal T 556104fea2 2005-12-20 Senganal T <[email protected]>
* Mono.Data.SqlExpressions/Aggregation.cs :
		Modified the Eval and CalculateStatisticalFunction to add boundary checks.
		Fixes #77025.
	* Test/System.Data/DataColumnTest.cs : added testcase for #77025
	

svn path=/trunk/mcs/; revision=54652
2005-12-20 12:24:21 +00:00
Konstantin Triger 6b3a9a1be6 use Convert.ToInt32() instead of cast to throw OverflowException
svn path=/trunk/mcs/; revision=53671
2005-11-30 10:19:03 +00:00
Konstantin Triger e5ce101e03 Fix the enumerator initialization problem
svn path=/trunk/mcs/; revision=52269
2005-10-27 11:41:00 +00:00
Senganal T dd5d2acb92 2005-10-21 Senganal T <[email protected]>
* 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-10-21 13:18:49 +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
Sureshkumar T d7810a713c In Test/System.Data:
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
2005-08-02 12:07:04 +00:00
Sureshkumar T 30147b28c8 2005-06-29 Sureshkumar T <[email protected]>
* ArithmeticExpressions.cs: Eval :if any one of the argument is
	null for an operator, the result is also NULL.


svn path=/trunk/mcs/; revision=46715
2005-06-29 11:31:11 +00:00
Ben Maurer b27c8e1534 remove .cvsignore from everywhere, as it is useless on svn
svn path=/trunk/mcs/; revision=46564
2005-06-27 15:55:58 +00:00
Konstantin Triger 2a82592256 merging the Mainsoft branch to the trunk
svn path=/trunk/mcs/; revision=44547
2005-05-15 23:15:37 +00:00
Konstantin Triger eb214e0eea Updating ChangeLog with the redesign changes
svn path=/branches/Mainsoft.System.Data/mcs/; revision=43889
2005-05-02 15:53:36 +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
Gonzalo Paniagua Javier 552088105f missed the case when the expr. don't ends with whitespace
svn path=/trunk/mcs/; revision=43576
2005-04-26 04:21:23 +00:00
Gonzalo Paniagua Javier e7715aa16d 2005-04-26 Gonzalo Paniagua Javier <[email protected]>
* Tokenizer.cs: make it not rely in exceptions being thrown to know that
	the array is entirely processed.


svn path=/trunk/mcs/; revision=43575
2005-04-26 04:15:53 +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 f934c78bfe 2005-01-28 Atsushi Enomoto <[email protected]>
* Comparison.cs : Eval() could be direct invocation to EvalBoolean().


svn path=/trunk/mcs/; revision=39682
2005-01-28 05:09:01 +00:00
Atsushi Eno b16f90a84d 2005-01-26 Atsushi Enomoto <[email protected]>
* Tokenizer.cs : just throw SyntaxErrorException instead of Exception.


svn path=/trunk/mcs/; revision=39536
2005-01-26 05:54:45 +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
Atsushi Eno 8cf87a3242 2005-01-20 Atsushi Enomoto <[email protected]>
* Numeric.cs : Fixed ToSameType(). It should let conversion result to
	  reference values.



svn path=/trunk/mcs/; revision=39239
2005-01-20 08:40:13 +00:00
Atsushi Eno 4c08d6a465 2005-01-20 Atsushi Enomoto <[email protected]>
* 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
2005-01-20 07:07:20 +00:00
Miguel de Icaza 3c3ce77d9b Add yacc_verbose_flag support
svn path=/trunk/mcs/; revision=36511
2004-11-25 03:38:07 +00:00
Umadevi S f6d7377985 2004-07-12 Umadevi S <[email protected]>
* Tokenizer.cs - read an Int64 from the text instead of Int32. Resolves
bug 61203

svn path=/trunk/mcs/; revision=31031
2004-07-12 03:47:19 +00:00
Boris Kirzner a01de3070a * Comparison.cs - use 'as' to avoid NullReferenceExeption in casting.
svn path=/trunk/mcs/; revision=29751
2004-06-17 08:22:13 +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 1ae45ce41b 2004-05-13 Umadevi S <[email protected]>
*  Literal.cs - made class internal

svn path=/trunk/mcs/; revision=27217
2004-05-13 03:19:21 +00:00
Umadevi S e072df5639 2004-05-12 Umadevi S <[email protected]>
* Expression.cs, Functions.cs, In.cs, Like.cs, Parser.jay, StringFunctions.cs - made class/enum/interfaces internal

svn path=/trunk/mcs/; revision=27155
2004-05-12 10:48:10 +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
Umadevi S 810d737cda 2004-05-12 Umadevi S <[email protected]>
* ArithmeticExpression.cs - made class internal

svn path=/trunk/mcs/; revision=27153
2004-05-12 10:22:10 +00:00
Umadevi S e00a913152 2004-05-12 Umadevi S <[email protected]>
* Aggregation.cs - made Class/enum internal

svn path=/trunk/mcs/; revision=27152
2004-05-12 10:17:06 +00:00
Atsushi Eno 5b732c062a 2004-05-05 Atsushi Enomoto <[email protected]>
* ArithmeticExpressions.cs: avoid null exception on add operation.

svn path=/trunk/mcs/; revision=26725
2004-05-05 02:45:02 +00:00
Juraj Skripsky d9fb2965c9 2004-04-29 Juraj Skripsky <[email protected]>
* Parser.jay: Fix rule for negative expressions.
	Add precedence rules for '<' and '>'.

svn path=/trunk/mcs/; revision=26327
2004-04-29 18:45:13 +00:00