From: Kris Jurka <books@ejurka.com>
To: Nico <nicohmail-postgresql@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: executeQuery returns postgresql.stat.result
Date: Sun, 1 May 2005 12:32:26 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0505011230450.1107@leary.csoft.net> (raw)
In-Reply-To: <d533ci$59s$1@news.hub.org>
References: <d533ci$59s$1@news.hub.org>
On Sun, 1 May 2005, Nico wrote:
> sql="select * from \"qryMonthsYears\"";
>...
> if(strstatement.startsWith("SELECT"))
>...
> else
> {
> connection.setAutoCommit(false);
> String [] sql=strstatement.split(";");
> for(int teller=0;teller<sql.length;teller++)
> statement.addBatch(sql[teller]+";");
> statement.executeBatch();
Your own parsing logic is busted and is trying to execute a select in a
batch statement, which is not legal.
Kris Jurka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, nicohmail-postgresql@yahoo.com
Subject: Re: executeQuery returns postgresql.stat.result
In-Reply-To: <Pine.BSO.4.56.0505011230450.1107@leary.csoft.net>
References: <d533ci$59s$1@news.hub.org> <Pine.BSO.4.56.0505011230450.1107@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox