Re: Fw: postgresql experts please help

From: Kris Jurka <books(at)ejurka(dot)com>
To: Andrei Ilitchev <andrei(dot)ilitchev(at)oracle(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org, Marina Vatkina <Marina(dot)Vatkina(at)Sun(dot)COM>
Subject: Re: Fw: postgresql experts please help
Date: 2007-10-18 17:45:58
Message-ID: Pine.BSO.4.64.0710181343220.25640@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Thu, 18 Oct 2007, Andrei Ilitchev wrote:

> I created a table with identity:
> CREATE TABLE MAN (ID SERIAL, NAME VARCHAR(40), PRIMARY KEY (ID))
> then through jdbc connection inserted a row into the table,
> then attempted to select pk value back through the same jdbc connection using
> currval - that failed with "not yet defined in this session" exception.
>

Any chance you have two man_id_seq sequences in different schemas? The
table insert might use one and the direct currval/nextval calls might use
another?

Kris Jurka

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Michael Schmidt 2007-10-18 17:58:28 Re: Fw: postgresql experts please help
Previous Message Kris Jurka 2007-10-18 17:41:43 Re: Fw: postgresql experts please help