The problem here is "assuming that Oracle and other have implemented
the interface
correctly" ....and we all know what assumption is the mother of ....

> -----Original Message-----
> From: Alan Meyer [SMTP:[EMAIL PROTECTED]]
> Sent: 31 January 2003 04:47
> To:   [EMAIL PROTECTED]
> Subject:      Closing a ResultSet, was "Re: odd oracle error"
>
> Cosmin Cremarenco <[EMAIL PROTECTED]> wrote:
>
> > I agree that the Statement and the PreparedStatement must be
> > explicitly closed. But what about the ResultSet. How come the following
> > piece of code works?
> > ...
>
> According to the SDK v1.4.1 API documentation for the ResultSet
> interface:
>
> "A ResultSet object is automatically closed when the Statement object
> that generated it is closed, re-executed, or used to retrieve the
> next result from a sequence of multiple results."
>
> So, assuming that Oracle and other have implemented the interface
> correctly, which I presume they have, there should be no need to
> close the ResultSet if the Statement is closed.  There should not be
> a resource leak.
> ---
> Alan Meyer
> AM Systems
> Randallstown, MD
> U.S.A.
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
>  http://java.sun.com/products/jsp
>  http://archives.java.sun.com/jsp-interest.html
>  http://forums.java.sun.com
>  http://www.jspinsider.com
--

It is the strict policy of Truworths that its e-mail facility and all
e-mail communications emanating therefrom, should be utilised for
business purposes only and should conform to high professional and
business standards.   Truworths has stipulated certain regulations in
terms whereof strict guidelines relating to the use and content of
e-mail communications are laid down. The use of the Truworths e-mail
facility is not permitted for the distribution of chain letters or
offensive mail of any nature whatsoever.   Truworths hereby distances
itself from and accepts no liability in respect of the unauthorised
use of its e-mail facility or the sending of e-mail communications
for other than strictly business purposes.   Truworths furthermore
disclaims liability for any  unauthorised instruction for  which
permission was not granted.    Truworths Limited accepts no liability
for any consequences arising from or as a result of reliance on this
message unless it is in respect of bona fide Truworths business for
which proper authorisation has been granted.

Any recipient of an unacceptable communication, a chain letter or
offensive material of any nature is requested to notify the Truworths
e-mail administrator ([EMAIL PROTECTED]) immediately in order that
appropriate action can be taken against the individual concerned.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to