[Mono-bugs] [Bug 72607][Wis] Changed - mono don't close connection on Fill call (DATASET)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 16 Feb 2005 04:01:50 -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 tsureshkumar@novell.com.

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

--- shadow/72607	2005-02-15 09:05:06.000000000 -0500
+++ shadow/72607.tmp.5462	2005-02-16 04:01:50.000000000 -0500
@@ -86,6 +86,20 @@
 CommandBehavior.CloseConnection) != 0)
 +                               command.Connection.Close ();
 +
 +                       return myresult;
                 }
 
+
+------- Additional Comments From tsureshkumar@novell.com  2005-02-16 04:01 -------
+Hubert, In my code above, i'm not opening connection before calling Fill.
+
+This works because while doing fill, if the connection is not opened,
+the commandbehavior is set to CloseConnection, so anyway, the
+connection will be closed.
+
+Thanks for the patch, i feel this is not necessary as reader.Close
+anyway will close the connection as well.
+
+Let me know, if you still have problem.
+
+