pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marko Kreen <marko@l-t.ee>
To: tony <tony@uickarate.com>
Cc: pgsql-interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: currval() problem
Date: Fri, 1 Dec 2000 10:53:44 +0200
Message-ID: <20001201105344.A7506@l-t.ee> (raw)
In-Reply-To: <001a01c059a1$f9ffc6f0$32fea8c0@tonydesktop>
References: <Pine.BSF.4.21.0011161505570.11653-100000@kraeusen.nbrewer.com>
	<3A1B11B4.1FA5AC73@uickarate.com>
	<3A1B16D4.76F6B49C@10happythings.com>
	<001a01c059a1$f9ffc6f0$32fea8c0@tonydesktop>

On Tue, Nov 28, 2000 at 08:16:08PM -0500, tony wrote:
> Hello
> 
> I have a problem with currval() through JDBC.  
> My nextval() updates the counter of sequences, but
> currval() returns no value even after I call nextval().
> Both work fine when I try them through psql.  
> Have you encountered this problem before??

does this help?

	con.setAutoCommit(false);

-- 
marko




view thread (3+ messages)

Message-ID: <20001201105344.A7506@l-t.ee>
Permalink:  ../20001201105344.A7506@l-t.ee/
Also on:    postgresql.org/message-id/20001201105344.A7506@l-t.ee

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: marko@l-t.ee, tony@uickarate.com
  Subject: Re: currval() problem
  In-Reply-To: <20001201105344.A7506@l-t.ee>

* 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