Re: executeBatch() issue with new driver? - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: executeBatch() issue with new driver?
Date
Msg-id Pine.BSO.4.56.0411021411070.17267@leary.csoft.net
Whole thread Raw
In response to executeBatch() issue with new driver?  (Alan Stange <stange@rentec.com>)
List pgsql-jdbc

On Tue, 2 Nov 2004, Alan Stange wrote:

> Connection conn = ...;
> Statement st = conn.createStatement();
> String sql = "create temp table t (a int4); insert into t (a) values (1);";
> st.addBatch(sql);
> st.executeBatch();
>

This is something (as discussed with Dave) that you shouldn't be doing,
but you certainly shouldn't get an ArrayIndexOutOfBoundsException.  I've
fixed the driver to return the desired SQLException reporting "Too many
results were returned."

Kris Jurka

pgsql-jdbc by date:

Previous
From: Alan Stange
Date:
Subject: Re: executeBatch() issue with new driver?
Next
From: Kris Jurka
Date:
Subject: Re: executeBatch() issue with new driver?