X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 64C623A4C2D for ; Sun, 23 Jan 2005 19:32:46 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 26097-05 for ; Sun, 23 Jan 2005 19:32:34 +0000 (GMT) Received: from andrea.pop4.net (skidway.pop4.net [216.234.109.11]) by svr1.postgresql.org (Postfix) with SMTP id 44AFD3A19A5 for ; Sun, 23 Jan 2005 19:32:32 +0000 (GMT) Received: (qmail 1453 invoked by uid 1008); 23 Jan 2005 19:32:28 -0000 Received: from cdsmith@twu.net by www.pop4.net with qmail-scanner-0.96 (uvscan: v4.1.40/v4156. . Clean. Processed in 0.678678 secs); 23 Jan 2005 19:32:28 -0000 Received: from unknown (HELO KALIO) (69.171.228.185) by 0 with SMTP; 23 Jan 2005 19:32:28 -0000 Message-ID: <01c701c50182$47c05350$7500000a@KALIO> From: "Chris Smith" To: "leo" Cc: References: Subject: Re: PGResultSetMetaData Date: Sun, 23 Jan 2005 12:32:30 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200501/218 X-Sequence-Number: 12098 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