From: | Dave Cramer <pg(at)fastcrypt(dot)com> |
---|---|
To: | Daniel Washusen <dlw(at)austclear(dot)com(dot)au> |
Cc: | Postgresql JDBC <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: |
Date: | 2003-11-10 03:17:09 |
Message-ID: | 1068434229.1621.507.camel@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Daniel,
Can you provide us with a test case?
Dave
On Sun, 2003-11-09 at 19:57, Daniel Washusen wrote:
> Morning all,
> I'm having a strange problem that I'm hoping someone will be able to help me
> with.
>
> When preforming an insert with a failed integrity constraint the
> PreparedStatement.executeUpdate() method seems to hang, but works fine when
> the integrity is good. I would expect the method to throw an SQLException
> complaning about the failed contraint. The same SQL statement fails as
> expected with a an error message when run within psql, so I presume it's
> something specific to either my code, or the JDBC driver.
>
> Here is the contraint on the table in question:
> CONSTRAINT "$2" FOREIGN KEY (security_code) REFERENCES security
> (security_code) ON UPDATE RESTRICT ON DELETE RESTRICT
>
> Has anyone else noticed this occuring and/or can anyone offer any hints on
> where I should be looking?
>
> Cheers,
> Dan
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Washusen | 2003-11-10 04:20:26 | Re: |
Previous Message | Daniel Washusen | 2003-11-10 00:59:30 | Re: Strange integrity problem with PreparedStatement (sorry I forgot the subject on the last post) |