pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Jeremiah Jahn <jeremiah@cs.earlham.edu>
Cc: postgres jdbc <pgsql-jdbc@postgresql.org>
Subject: Re: PreparedStatement.getMetaData() and Creator
Date: Thu, 29 Jul 2004 13:23:46 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0407291307090.9250@leary.csoft.net> (raw)
In-Reply-To: <1091122692.10733.326.camel@bluejay.goodinassociates.com>
References: <1091122692.10733.326.camel@bluejay.goodinassociates.com>



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



view thread (2+ messages)

Message-ID: <Pine.BSO.4.56.0407291307090.9250@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0407291307090.9250@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0407291307090.9250@leary.csoft.net

 · 

reply

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, jeremiah@cs.earlham.edu
  Subject: Re: PreparedStatement.getMetaData() and Creator
  In-Reply-To: <Pine.BSO.4.56.0407291307090.9250@leary.csoft.net>
  References: <1091122692.10733.326.camel@bluejay.goodinassociates.com> <Pine.BSO.4.56.0407291307090.9250@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