Re: executeQuery returns postgresql.stat.result

From: Kris Jurka <books(at)ejurka(dot)com>
To: Nico <nicohmail-postgresql(at)yahoo(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: executeQuery returns postgresql.stat.result
Date: 2005-05-01 17:32:26
Message-ID: Pine.BSO.4.56.0505011230450.1107@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Nico 2005-05-01 17:59:09 Re: executeQuery returns postgresql.stat.result
Previous Message Nico 2005-05-01 17:24:06 executeQuery returns postgresql.stat.result