Re: MoveToInsertRow on a table without a primary key

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: MoveToInsertRow on a table without a primary key
Дата
Msg-id CADK3HH+BhuRYZH+-cUfqsyqDOjU63ySO3ZZo2tmr+aDMq1pxXg@mail.gmail.com
обсуждение исходный текст
Ответ на MoveToInsertRow on a table without a primary key  (patrick.balleux@gmail.com)
Ответы Re: MoveToInsertRow on a table without a primary key  (Andrew Hastie <andrew@ahastie.net>)
Список pgsql-jdbc
Pretty sure a primary key is a pre-requisite for an updatable result set.

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca



On Wed, Mar 14, 2012 at 9:03 AM,  <patrick.balleux@gmail.com> wrote:
> Hello all,
>
> I have a table in a database that does not have a primary key.  In the process of migrating data from Oracle to
Postgres,I am using ResultSets to populate the Postgres tables. 
>
> Basically, all is working well except for tables that do not have a primary key.  When I reach the "movetoinsertrow"
instructionin my code, the jdbc driver raises an exception about the missing primary key. 
>
> The workaround would be to add a temporary primary key to such table, but I want to avoid that.  I did the same test
withHSQLDB and it works.  To me, it seems like a bug. 
>
> I googled around for the solution, but found nothing.
>
> Any tips?
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc

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

Предыдущее
От: patrick.balleux@gmail.com
Дата:
Сообщение: MoveToInsertRow on a table without a primary key
Следующее
От: Andrew Hastie
Дата:
Сообщение: Re: MoveToInsertRow on a table without a primary key