pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Cottenceau <gc@mnc.ch>
To: pg@fastcrypt.com
Cc: Daniel Schaedler <postgres-jdbc@daniel.schaedler.name>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: problem to get nextval of a sequence
Date: 28 Dec 2004 15:56:29 +0100
Message-ID: <87oegea2ua.fsf@meuh.mnc.ch> (raw)
In-Reply-To: <41D16830.7000800@fastcrypt.com>
References: <41D15580.3050700@daniel.schaedler.name>
	<87zmzyblx3.fsf@meuh.mnc.ch>
	<41D1608B.10109@daniel.schaedler.name>
	<41D16830.7000800@fastcrypt.com>

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



view thread (6+ messages)

Message-ID: <87oegea2ua.fsf@meuh.mnc.ch>
Permalink:  ../87oegea2ua.fsf@meuh.mnc.ch/
Also on:    postgresql.org/message-id/87oegea2ua.fsf@meuh.mnc.ch

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: gc@mnc.ch, pg@fastcrypt.com, postgres-jdbc@daniel.schaedler.name
  Subject: Re: problem to get nextval of a sequence
  In-Reply-To: <87oegea2ua.fsf@meuh.mnc.ch>
  References: <41D15580.3050700@daniel.schaedler.name> <87zmzyblx3.fsf@meuh.mnc.ch> <41D1608B.10109@daniel.schaedler.name> <41D16830.7000800@fastcrypt.com> <87oegea2ua.fsf@meuh.mnc.ch>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox