db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitri Pissarenko" <dmitri.pissare...@gmail.com>
Subject Problem with UNIQUE constraint
Date Wed, 13 Aug 2008 20:07:23 GMT
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

Mime
View raw message