Re: PGResultSetMetaData - Mailing list pgsql-jdbc

From Chris Smith
Subject Re: PGResultSetMetaData
Date
Msg-id 01c701c50182$47c05350$7500000a@KALIO
Whole thread Raw
In response to PGResultSetMetaData  (leo <usenet@workfile.de>)
List pgsql-jdbc
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


pgsql-jdbc by date:

Previous
From: leo
Date:
Subject: PGResultSetMetaData
Next
From: leo
Date:
Subject: Re: PGResultSetMetaData