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

(fwd) What should Statement.executeBatch() do with an empty batch?

From: Rene Pijlman <rpijlman(at)wanadoo(dot)nl>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: (fwd) What should Statement.executeBatch() do with an empty batch?
Date: 2001-08-26 16:37:35
Message-ID: dc9iot4n3bomjk3c98rope3klp67964fu6@4ax.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
FYI ... I posted this question on the Sun JDBC-interest list.
This affects the PostgreSQL driver as well. Any thoughts?

>What should Statement.executeBatch() do when its called with an
>empty or non-existent batch?
>
>Should it throw an exception, or should it successfully do
>nothing and return an updateCounts array of length 0?
>
>The JDBC 2.0 spec isn't clear about this.
>
>Regards,
>René Pijlman


Regards,
René Pijlman

pgsql-jdbc by date

Next:From: Rene PijlmanDate: 2001-08-26 16:40:25
Subject: (fwd) What should Statement.executeBatch() do with an empty batch?
Previous:From: Barry LindDate: 2001-08-26 07:58:50
Subject: Re: [BUGS] Bug #428: Another security issue with the JDBC driver.

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