From: patrick.balleux@gmail.com
To: pgsql-jdbc@postgresql.org
Subject: MoveToInsertRow on a table without a primary key
Date: Wed, 14 Mar 2012 06:03:36 -0700 (PDT)
Message-ID: <1911821.1566.1331730216537.JavaMail.geo-discussion-forums@pbjv6> (raw)
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" instruction in 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 with HSQLDB and it works. To me, it seems like a bug.
I googled around for the solution, but found nothing.
Any tips?
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: patrick.balleux@gmail.com
Subject: Re: MoveToInsertRow on a table without a primary key
In-Reply-To: <1911821.1566.1331730216537.JavaMail.geo-discussion-forums@pbjv6>
References: <1911821.1566.1331730216537.JavaMail.geo-discussion-forums@pbjv6>
* 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