db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: Problem with UNIQUE constraint
Date Wed, 13 Aug 2008 20:13:35 GMT
Hi Dmitri,

It would help if you would show your DDL to define the table and a  
short program segment that would demonstrate the problem.

I've not heard of such a problem.

Craig

On Aug 13, 2008, at 1:07 PM, Dmitri Pissarenko wrote:

> Hello!
>
> I have a database table with a UNIQUE constraint.
>
> However, when I try to insert duplicate records, this happens without
> an exception (I'm using prepared statements).
>
> How can fix this problem, i. e. how can I achive that an exception is
> thrown, when my program attempts to insert a duplicate record in this
> table?
>
> Thanks in advance
>
> Dmitri Pissarenko

Craig L Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message