Re: Multiple Statement result set problem with PreparedStatements

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: "Lenard, Rohan (Rohan)" <rlenard(at)avaya(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Multiple Statement result set problem with PreparedStatements
Date: 2005-07-14 02:19:53
Message-ID: 42D5CBC9.5000707@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Lenard, Rohan (Rohan) wrote:
> I have one but it relies on particular tables existing - if I get a few
> minutes I too will simplify it to cause it ..

Hm, ok, try the attached testcase. It works fine for me here against
8.0.1 and 7.3.8 servers:

> oliver(at)extrashiny ~/pgjdbc-test $ java -classpath .:/home/oliver/pgjdbc/jars/postgresql.jar TestMultiInsert 'jdbc:postgresql://localhost:5432/test?user=oliver'
> Result #1 has resultset? false update count 1
> Result #2 has resultset? false update count 1
> Result #3 has resultset? true update count -1
> oliver(at)extrashiny ~/pgjdbc-test $ java -classpath .:/home/oliver/pgjdbc/jars/postgresql.jar TestMultiInsert 'jdbc:postgresql://localhost:5738/test?user=oliver'
> Result #1 has resultset? false update count 1
> Result #2 has resultset? false update count 1
> Result #3 has resultset? true update count -1

Those are the results I was expecting, anyway.. were you expecting
something different?

-O

Attachment Content-Type Size
TestMultiInsert.java text/plain 1.3 KB

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Lenard, Rohan (Rohan) 2005-07-14 02:34:23 Re: Multiple Statement result set problem with PreparedStatements ?
Previous Message Lenard, Rohan (Rohan) 2005-07-14 02:05:36 Re: Multiple Statement result set problem with PreparedStatements ?