* ColumnReference.cs : using DataRow _inExpressionEvaluation before accessing row...
authorBoris Kirzner <borisk@mono-cvs.ximian.com>
Wed, 28 Apr 2004 07:39:07 +0000 (07:39 -0000)
committerBoris Kirzner <borisk@mono-cvs.ximian.com>
Wed, 28 Apr 2004 07:39:07 +0000 (07:39 -0000)
svn path=/trunk/mcs/; revision=26119

mcs/class/System.Data/Mono.Data.SqlExpressions/ChangeLog
mcs/class/System.Data/Mono.Data.SqlExpressions/ColumnReference.cs

index 26bd087127b7de76ef84d4f1f2e7669985d15444..9346721c31af8d4da37ab4f1a780debae06dd6b8 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-28 Boris Kirzner <borisk@mainsoft.com>
+
+       * ColumnReference.cs : using DataRow _inExpressionEvaluation before accessing row value
+         to get an access to deleted rows also.
+
 2004-04-22  Juraj Skripsky <juraj@hotfeet.ch>
 
        * Parser.jay: Allow computed expressions on left-hand side of
index 3aa6467101c2424af24bed90e526cd45202ff5e4..1993b2add36dc3529adbc405a279920d8ed6bff8 100644 (file)
@@ -121,8 +121,10 @@ namespace Mono.Data.SqlExpressions {
                                return null;
                                
                        object val;
-                       try {                   
+                       try {
+                               referencedRow._inExpressionEvaluation = true;
                                val = referencedRow [columnName];
+                               referencedRow._inExpressionEvaluation = false;
                        } catch (IndexOutOfRangeException) {
                                throw new EvaluateException (String.Format ("Cannot find column [{0}].", columnName));
                        }