pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Smith <cdsmith@twu.net>
To: leo <usenet@workfile.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: PGResultSetMetaData
Date: Sun, 23 Jan 2005 12:32:30 -0700
Message-ID: <01c701c50182$47c05350$7500000a@KALIO> (raw)
References: <kr5so79kvul8$.1haqd7ypkt8g9$.dlg@40tude.net>

leo wrote:
> as I need getTableName() and getSchemaName() I found
> the interface PGResultSetMetaData.
> Is ist still experimental?
> Has anybody used it already? If so, could you give me
> a hint how to implement it?

It's not experimental.  However, instead of using the PostgreSQL 
implementation class, you should stick to the JDBC API.

    ResultSet rs = stmt.executeQuery(...);
    ResultSetMetaData rmd = rs.getMetaData();

    String table = rmd.getTableName(1);
    String schema = rmd.getSchemaName(1);

(just for example)

-- 
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation 




view thread (10+ messages)  latest in thread

Message-ID: <01c701c50182$47c05350$7500000a@KALIO>
Permalink:  ../01c701c50182$47c05350$7500000a@KALIO/
Also on:    postgresql.org/message-id/01c701c50182$47c05350$7500000a@KALIO

 · 

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: cdsmith@twu.net, usenet@workfile.de
  Subject: Re: PGResultSetMetaData
  In-Reply-To: <01c701c50182$47c05350$7500000a@KALIO>
  References: <kr5so79kvul8$.1haqd7ypkt8g9$.dlg@40tude.net> <01c701c50182$47c05350$7500000a@KALIO>

* 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