Re: postgresql not updating the sequence

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: postgresql not updating the sequence
Дата
Msg-id 4DC1451F.1080002@iol.ie
обсуждение исходный текст
Ответ на postgresql not updating the sequence  (kosna <skosna@yahoo.com>)
Список pgsql-general
On 04/05/2011 08:10, kosna wrote:
> hi everyone,
>
> i ve created a table with id and datatype of id is serial
> and i ve created a  sequence on that table
> whenever i insert the new row values the id is not being incremented and it
> is giving the exception entityalreadyexists. pls help me
> thanks and regards,
> kosna.

Can you show us your query? Also, are you using any sort of framework or
ORM, or just sending the query directly to the server?

The more detail you give, the better people will be able to help you.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

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

Предыдущее
От: Jens Wilke
Дата:
Сообщение: undead index
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: pervasiveness of surrogate (also called synthetic) keys