Re: Java Studio Creator Fix/Hack

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Pucky Loucks <ploucks(at)h2st(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Java Studio Creator Fix/Hack
Date: 2004-12-11 00:45:35
Message-ID: 41BA432F.2020607@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Pucky Loucks wrote:

> org.postgresql.jdbc2.AbstractJdbc2Statement.getMetaData() to the following. [...]

> connection.getQueryExecutor().execute(preparedQuery,
> preparedParameters,
> handler,
> 0,
> 0,
> QueryExecutor.QUERY_ONESHOT);
> rs = handler.getResults().getResultSet();
> }

Danger, danger. This actually *executes* the query.
Statement.getMetaData() isn't meant to do that!

-O

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2004-12-11 01:17:10 Re: French translation
Previous Message Pucky Loucks 2004-12-10 22:09:26 Java Studio Creator Fix/Hack