ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Bojer <ibo...@gmail.com>
Subject Please HELP - IBatis not throwing Unique constraint exception
Date Wed, 17 Jun 2009 16:59:53 GMT
Hi,

I have a problem where IBatis never throws any of the constaint
exceptions. My set-up is:
- postgresql 8.3.5
- postgres JDBC type 3 driver
- ibator for DAO and POJO generation

I have a simple table which has an unique constraint on the column. e.g.

CREATE TABLE SCHEMA_CONF.dns_suffix (
    suffix VARCHAR(128) NOT NULL UNIQUE,
);

The problem is that I can try to insert 'n' numbers of entries into it
and they will be rejected by database (as expected), but
I never get any SQLExceptions thrown back. Database logs clearly show
that commit was rejected because of UNIQUE constraint
violation.

What am I missing? Any hints?

Mime
View raw message