[Mono-bugs] [Bug 56014][Nor] New - RowsExist doesn't work for tables with relations

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 24 Mar 2004 18:34:18 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by juraj@hotfeet.ch.

http://bugzilla.ximian.com/show_bug.cgi?id=56014

--- shadow/56014	2004-03-24 18:34:18.000000000 -0500
+++ shadow/56014.tmp.1379	2004-03-24 18:34:18.000000000 -0500
@@ -0,0 +1,47 @@
+Bug#: 56014
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Data
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: juraj@hotfeet.ch               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: RowsExist doesn't work for tables with relations
+
+Description of Problem:
+RowsExist gives wrong results as soon as it's table is part of a relation.
+The bug is in the new indexing code of DataTable/Index.
+
+Steps to reproduce the problem:
+1. compile attached test case
+2. run once with, one without argument "rel"
+
+Actual Results:
+mono test.exe
+Found 'Jack' in table: True
+
+mono test.exe rel
+Found 'Jack' in table: False
+
+Expected Results:
+mono test.exe
+Found 'Jack' in table: True
+
+mono test.exe rel
+Found 'Jack' in table: True
+
+How often does this happen? 
+always
+
+
+Additional Information:
+Disabling the index-lookup code in DataTable.RowsExist (as shown in the
+attached file) makes the problem go away.