db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject Re: Torque test (ex runtimetest)
Date Fri, 09 Sep 2005 14:45:12 GMT




Thomas Vandahl <thomas.vandahl@tewisoft.de> schrieb am 09.09.2005 16:28:58:

> Scott Eade wrote:
> > The second time I run the test using PostgreSQL I am getting:
> >
> >     [junit] org.apache.torque.TorqueException:
> > org.postgresql.util.PSQLException: ERROR: duplicate key violates unique
> > constraint "null_value_table_pkey"
> >     [junit]
> >     [junit]     at
> > org.apache.torque.util.BasePeer.throwTorqueException(BasePeer.java:103)
> >     [junit]     at
> > org.apache.torque.util.BasePeer.insertOrUpdateRecord(BasePeer.java:626)
> >     [junit]     at
> > org.apache.torque.util.BasePeer.doInsert(BasePeer.java:516)
> >     [junit]     at
> > org.apache.torque.test.BaseNullValueTablePeer.
> doInsert(BaseNullValueTablePeer.java:228)
> [...]
> > I doubt if this is showing up in MySQL.
>
> In fact it is. The problem obviously has something to do with the tests
> dumping and restoring data. For the problem to go away it is sufficient
> to remove the sql files from the target directory. Hope that helps a bit.
>

Thanks for the hint. I'll fix it today evening.

   Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message