Re: Problem in getting column names from DatabaseMetadata Object

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Problem in getting column names from DatabaseMetadata Object
Date: 2015-11-03 13:51:49
Message-ID: n1ae5l$9vb$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2015-11-03 13:54:51 Re: Problem in getting column names from DatabaseMetadata Object
Previous Message stallapp 2015-11-03 13:23:17 Problem in getting column names from DatabaseMetadata Object