Re: PreparedStatement.getMetaData() and Creator - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: PreparedStatement.getMetaData() and Creator
Date
Msg-id Pine.BSO.4.56.0407291307090.9250@leary.csoft.net
Whole thread Raw
In response to PreparedStatement.getMetaData() and Creator  (Jeremiah Jahn <jeremiah@cs.earlham.edu>)
List pgsql-jdbc

On Thu, 29 Jul 2004, Jeremiah Jahn wrote:

> >We just tested postgresql in house and found that the driver is
> >returning null for PreparedStatement.getMetaData()
>

It may be possible to do that now.  Previously PreparedStatements were
implemented by doing the substitution on the driver side and sending the
full query to the backend, so the only way to get the metadata was to
actually run the query.  With the new V3 protocol support it seems
possible to issue Parse and Describe messages without issuing Bind or
Execute.

Kris Jurka

pgsql-jdbc by date:

Previous
From: Jeremiah Jahn
Date:
Subject: Re: Java Studio Creator and postgresql jdbc
Next
From: "Mike Martin"
Date:
Subject: Re: Wrong column names in ResultSetMetaData