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

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

pgsql-jdbc by date

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

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