Re: Pooling Prepared Statements - Mailing list pgsql-jdbc

From Rainer Klute
Subject Re: Pooling Prepared Statements
Date
Msg-id 200208300531.g7U5Vkv06741@tommy.rainer-klute.de
Whole thread Raw
In response to Re: Pooling Prepared Statements  (João Paulo Caldas Ribeiro <jp@mobicomp.com>)
List pgsql-jdbc
>You are right. It's  1 statement -> 1 resultset at a time.
>
>As Dave said: "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. "
>
>My mistake.

It is still a good idea to close result sets after use. If you
rely on automatically closing them you might have some wasted
resources lying around because you might execute a statement
and never reuse it.

It is also a good idea to explicitly close statements and
connections.

Best regards
Rainer Klute

                           Rainer Klute IT-Consulting GmbH
  Dipl.-Inform.
  Rainer Klute             E-Mail:  klute@rainer-klute.de
  Körner Grund 24          Telefon: +49 172 2324824
D-44143 Dortmund           Telefax: +49 231 5349423


pgsql-jdbc by date:

Previous
From: Harrison
Date:
Subject: 7.0 - 7.2 upgrade, org.postgresql.Driver Class not found
Next
From: João Paulo Caldas Ribeiro
Date:
Subject: Re: Connections/Statements/ResultSets (Was: Re: Pooling