Re: "nested transaction" - encosing statement gets closed

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: "nested transaction" - encosing statement gets closed
Дата
Msg-id Pine.BSO.4.64.0701151227070.12242@leary2.csoft.net
обсуждение исходный текст
Ответ на "nested transaction" - encosing statement gets closed when the enclosed statement is closed  (Havard Tveite <havard.tveite@umb.no>)
Ответы Re: "nested transaction" - encosing statement gets closed  (Havard Tveite <havard.tveite@umb.no>)
Список pgsql-jdbc

On Mon, 15 Jan 2007, Havard Tveite wrote:

> I have experienced problems using the JDBC type 2 and type 3
> drivers for 8.1 (postgresql-8.1-408.jdbc3.jar,
> postgresql-8.1-408.jdbc2.jar) against PostgreSQL 8.1.5.
>

Are you sure it's complaining that stmt is closed.  This coding clearly
looks like the problem will be with stmtchk as you close it in the loop,
but then continue using it.

>  Statement stmtchk = conn.createStatement();
>  while (rs.next()) {
>    ResultSet rsch = stmtchk.executeQuery(checkquery);
>    stmtchk.close(); // leads to the closing of stmt!!!
>  }
>

Kris Jurka

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Havard Tveite
Дата:
Сообщение: "nested transaction" - encosing statement gets closed when the enclosed statement is closed
Следующее
От: "Jeanna Geier"
Дата:
Сообщение: Re: Problem Retrieving/Refresing Data From Database