Author: gonzalo
Date: 2005-04-26 00:21:23 -0400 (Tue, 26 Apr 2005)
New Revision: 43576
Modified:
trunk/mcs/class/System.Data/Mono.Data.SqlExpressions/Tokenizer.cs
Log:
missed the case when the expr. don't ends with whitespace
Modified: trunk/mcs/class/System.Data/Mono.Data.SqlExpressions/Tokenizer.cs
===================================================================
--- trunk/mcs/class/System.Data/Mono.Data.SqlExpressions/Tokenizer.cs
2005-04-26 04:15:53 UTC (rev 43575)
+++ trunk/mcs/class/System.Data/Mono.Data.SqlExpressions/Tokenizer.cs
2005-04-26 04:21:23 UTC (rev 43576)
@@ -108,6 +108,9 @@
private bool SkipWhiteSpace ()
{
+ if (pos >= input.Length)
+ return false;
+
while (Char.IsWhiteSpace (Current ())) {
if (!MoveNext ())
return false;
@@ -286,7 +289,8 @@
if (!SkipWhiteSpace())
return false;
tok = ParseToken();
- return MoveNext ();
+ MoveNext ();
+ return true;
}
/** classifies current token.
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches