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 156873A4C3C for ; Sun, 23 Jan 2005 20:01:03 +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 28533-05 for ; Sun, 23 Jan 2005 20:00:56 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 335A33A4BF0 for ; Sun, 23 Jan 2005 20:00:56 +0000 (GMT) Received: (qmail 7668 invoked from network); 23 Jan 2005 20:00:18 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 23 Jan 2005 20:00:18 -0000 Message-ID: <41F402F3.8010802@fastcrypt.com> Date: Sun, 23 Jan 2005 15:02:59 -0500 From: Dave Cramer User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: leo Cc: pgsql-jdbc@postgresql.org Subject: Re: PGResultSetMetaData References: <01c701c50182$47c05350$7500000a@KALIO> In-Reply-To: Content-Type: multipart/alternative; boundary="------------060409040103020007010109" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.11 tagged_above=0 required=5 tests=AWL, HTML_40_50, HTML_MESSAGE, HTML_TITLE_EMPTY X-Spam-Level: X-Archive-Number: 200501/223 X-Sequence-Number: 12103 This is a multi-part message in MIME format. --------------060409040103020007010109 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Look at the test suite, you can see how the code is used there Dave leo wrote: >Chris Smith: > > >> ResultSet rs = stmt.executeQuery(...); >> ResultSetMetaData rmd = rs.getMetaData(); >> >> String table = rmd.getTableName(1); >> String schema = rmd.getSchemaName(1); >> >> >Does this really work? > >Using Postgres 8 i am getting empty strings from both methods. > > >---------------------------(end of broadcast)--------------------------- >TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > > > > --------------060409040103020007010109 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Look at the test suite, you can see how the code is used there

Dave
leo wrote:
Chris Smith:
  
   ResultSet rs = stmt.executeQuery(...);
   ResultSetMetaData rmd = rs.getMetaData();

   String table = rmd.getTableName(1);
   String schema = rmd.getSchemaName(1);
    
Does this really work?

Using Postgres 8 i am getting empty strings from both methods.


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo@postgresql.org so that your
      message can get through to the mailing list cleanly


  
--------------060409040103020007010109--