pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Problem in getting column names from DatabaseMetadata Object
Date: Tue, 3 Nov 2015 14:51:49 +0100
Message-ID: <n1ae5l$9vb$1@ger.gmane.org> (raw)
In-Reply-To: <1446556997253-5872498.post@n5.nabble.com>
References: <1446556997253-5872498.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

> I am using the following code to get the column names of my postgres table
> but it fails. My database name is "employee" and table name is "employee".

But you are connecting to a database called "data_gen":

> DriverManager.getConnection("jdbc:postgresql://sampel.db:5432/data_gen", "postgres"

Also: what exactly does "it fails" mean? Do you get an exception? If yes, what is the exception? 

Thomas



-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (4+ messages)  latest in thread

Message-ID: <n1ae5l$9vb$1@ger.gmane.org>
Permalink:  ../n1ae5l$9vb$1@ger.gmane.org/
Also on:    postgresql.org/message-id/n1ae5l$9vb$1@ger.gmane.org

 · 

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: spam_eater@gmx.net
  Subject: Re: Problem in getting column names from DatabaseMetadata Object
  In-Reply-To: <n1ae5l$9vb$1@ger.gmane.org>
  References: <1446556997253-5872498.post@n5.nabble.com> <n1ae5l$9vb$1@ger.gmane.org>

* 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