Re: Fw: postgresql experts please help

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Fw: postgresql experts please help
Дата
Msg-id Pine.BSO.4.64.0710181343220.25640@leary.csoft.net
обсуждение исходный текст
Ответ на Fw: postgresql experts please help  ("Andrei Ilitchev" <andrei.ilitchev@oracle.com>)
Список 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

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Fw: postgresql experts please help
Следующее
От: Michael Schmidt
Дата:
Сообщение: Re: Fw: postgresql experts please help