Re: I'm losing the data from a ResultSet

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: I'm losing the data from a ResultSet
Дата
Msg-id Pine.LNX.4.33.0401121556040.9249-100000@leary.csoft.net
обсуждение исходный текст
Ответ на I'm losing the data from a ResultSet  ("Waldomiro" <wmiro@ig.com.br>)
Список pgsql-jdbc

On Mon, 12 Jan 2004, Waldomiro wrote:

> hi there,
>
> I have a instance of a ResultSet which I've loaded some data from a table.
>
> sometime later I create a second instance of a ResultSet for some data
> from other table, but the fisrt instance of a ResultSet lost the data.
>

You most likely have reused a Statement object.  When you do this the
first ResultSet is discarded.  If you want two open ResultSets at the same
time, you need two Statement objects.

Kris Jurka



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

Предыдущее
От: "Waldomiro"
Дата:
Сообщение: I'm losing the data from a ResultSet
Следующее
От: Warren Little
Дата:
Сообщение: What happens to a ResultSet when statement closed