Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group