Re: Referential integrity error

From: "James Kelty" <jamesk(at)everbase(dot)net>
To: "Dave Cramer" <Dave(at)micro-automation(dot)net>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Referential integrity error
Date: 2002-08-05 23:16:35
Message-ID: LIEBJHJEFMPDEOMFHCAOMEJLCIAA.jamesk@everbase.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Yes, yes, I do.

Here is a test case that a developer wrote. Basically the class ran through
a process of, doing a select on the DB, and getting the results, which were
valid. Then, he created a ref integrity violation, and then tried the select
again, and got an exception. Here are his results.

>Running this java class produces the following output:
>The second query (which is the same as the first) produces an error
>message after a bad insert statement is executed...
>
>
>About to execute a valid query (we expect results)
>After executing a valid query (no exception thrown)
>Expected this error: ERROR: fk_customeraddress_n40026faddre referential
>integrity violation -
>key referenced from customeraddress not found in address
>
>Closing error-producing statement
>About to execute another valid query
>After second valid query (unexpected exception): No results were returned
by
>the query.

Thanks!

-James
-----Original Message-----
From: Dave Cramer [mailto:Dave(at)micro-automation(dot)net]
Sent: Monday, August 05, 2002 4:07 PM
To: James Kelty
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] Referential integrity error

Can you send a test case that demonstrates your problem?

Dave
On Mon, 2002-08-05 at 18:47, James Kelty wrote:
> Hello,
>
> We have noticed that with PostgreSQL 7.1.3, and the downloadable jdbc
> driver, that, when a connection gets a referential integrity exception,
that
> the query results returned from that connection are not longer correct.
This
> is reproduceable by our QA team. Has anyone had this issue, and is there a
> fix?
>
>
>
> -James
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
>

Attachment Content-Type Size
JTest.java application/octet-stream 2.6 KB

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jacob Vennervald Madsen 2002-08-06 15:10:03 Can I check if a db connection is working?
Previous Message Dave Cramer 2002-08-05 23:06:50 Re: Referential integrity error