[Mono-bugs] [Bug 381151] DataAdapter returns 0 rows after an SQL timeout occured

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 23 04:27:59 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=381151

User vvaradhan at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=381151#c8


Veerapuram Varadhan <vvaradhan at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|REOPENED                                        |NEEDINFO
      Info Provider|                                                |gert.driesen at pandora.be




--- Comment #8 from Veerapuram Varadhan <vvaradhan at novell.com>  2008-04-23 02:27:58 MST ---
(In reply to comment #4 from Gert Driesen)
> After a timeout, the connection appears to be in an unusable state.
> 
> To reproduce:
> 1. Modify the CreateConnectionString method in the test case to match your
> local setup.
> 2. compile and run the test case.
> 
> Expeced result:
> 
> Record read: True
> 
> Actual result:
> 
> Record read: False
>
Gert: Are you running the code against any test suite?

> Note:
> 
> Even if you execute an invalid SQL statement, the ExecuteReader method will not
> result in a SqlException!
> 
In the fix ExecuteReader, I have removed the current try-catch-throw as
ExecuteReader internally calls Execute which throws the same exception that of
the ExecuteReader.  Also, the fix required not to close on TdsTimeoutException
and the same is handled in Execute.  

Can you give more details as to when ExecuteReader is not throwing a
SqlException? 


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list