pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
appears twice in primary key constraint
2+ messages / 2 participants
[nested] [flat]

* appears twice in primary key constraint
@ 2006-01-06 02:43 Victor Pérez Juárez <victor.perez@e-evolution.com>
  2006-01-06 11:40 ` Re: appears twice in primary key constraint Oliver Jowett <oliver@opencloud.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Victor Pérez Juárez @ 2006-01-06 02:43 UTC (permalink / raw)
  To: pgsql-jdbc

Hi very body!

I am execute a dbcopy to migrate from ORacle to PostgreSQL but I get 
this error when is create prymary key

org.postgresql.util.PSQLException: ERROR: column "ad_client_id" appears 
twice in primary key constraint
    at 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1512)
    at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1297)
    at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
    at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:430)
    at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:332)
    at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:278)
    at 
net.sourceforge.squirrel_sql.plugins.dbcopy.util.DBUtil.executeUpdate(DBUtil.java:257)
    at 
net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor.createTable(CopyExecutor.java:688)
    at 
net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor._execute(CopyExecutor.java:160)
    at 
net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor.access$000(CopyExecutor.java:57)
    at 
net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor$1.run(CopyExecutor.java:120)
    at java.lang.Thread.run(Thread.java:595)

What is the problem?

Victor Perez
CEO
www.e-evolution.com
victor.perez@e-evolution.com



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: appears twice in primary key constraint
  2006-01-06 02:43 appears twice in primary key constraint Victor Pérez Juárez <victor.perez@e-evolution.com>
@ 2006-01-06 11:40 ` Oliver Jowett <oliver@opencloud.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Oliver Jowett @ 2006-01-06 11:40 UTC (permalink / raw)
  To: Victor Pérez Juárez <victor.perez@e-evolution.com>; +Cc: pgsql-jdbc

Victor Pérez Juárez wrote:
> Hi very body!
> 
> I am execute a dbcopy to migrate from ORacle to PostgreSQL but I get 
> this error when is create prymary key
> 
> org.postgresql.util.PSQLException: ERROR: column "ad_client_id" appears 
> twice in primary key constraint

You should probably ask the authors of dbcopy as this appears to be a 
client/application problem, not a JDBC driver problem -- dbcopy is 
apparently creating a bogus CREATE TABLE / ADD CONSTRAINT query.

-O



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-01-06 11:40 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-01-06 02:43 appears twice in primary key constraint Victor Pérez Juárez <victor.perez@e-evolution.com>
2006-01-06 11:40 ` Oliver Jowett <oliver@opencloud.com>

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