Re: problem to get nextval of a sequence

Поиск
Список
Период
Сортировка
От Guillaume Cottenceau
Тема Re: problem to get nextval of a sequence
Дата
Msg-id 87oegea2ua.fsf@meuh.mnc.ch
обсуждение исходный текст
Ответ на Re: problem to get nextval of a sequence  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-jdbc
Dave Cramer <pg 'at' fastcrypt.com> writes:

> Daniel,
>
> The spec says that you must call next to position the cursor. What
> happens if nothing comes back? ie an empty result set ?

With previous versions of postgres (and/or the jdbc driver?) it
was possible to get results with the cursor positioned before the
first row; it returned results from the first row. That's
probably the reason of the buggy code of Daniel.

--
Guillaume Cottenceau

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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Open connections
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Open connections