Re: problem to get nextval of a sequence - Mailing list pgsql-jdbc

From Guillaume Cottenceau
Subject Re: problem to get nextval of a sequence
Date
Msg-id 87oegea2ua.fsf@meuh.mnc.ch
Whole thread Raw
In response to Re: problem to get nextval of a sequence  (Dave Cramer <pg@fastcrypt.com>)
List 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 by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Open connections
Next
From: Scott Marlowe
Date:
Subject: Re: Open connections