Re: executeBatch() issue with new driver?

From: Kris Jurka <books(at)ejurka(dot)com>
To: Alan Stange <stange(at)rentec(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: executeBatch() issue with new driver?
Date: 2004-11-02 19:13:00
Message-ID: Pine.BSO.4.56.0411021411070.17267@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2004-11-02 19:39:40 Re: executeBatch() issue with new driver?
Previous Message Alan Stange 2004-11-02 17:33:41 Re: executeBatch() issue with new driver?