Re: relation does not exist - Mailing list pgsql-jdbc

From Mark Lewis
Subject Re: relation does not exist
Date
Msg-id 1140550174.9076.371.camel@archimedes
Whole thread Raw
In response to relation does not exist  (eric cartman <panefsky@yahoo.com>)
Responses relation does not exist
List pgsql-jdbc
Did you create the tables using case-sensitive names, such as:

create table "MyTable" ... ?

If this is the case, then you would see some upper-case letters in the
results from DatabaseMetaData.getTables(), and in order to use the
tables in any queries you would always need to quote the table names and
use correct case, since unquoted identifier names are always forced to
lower case in PostgreSQL.

-- Mark Lewis

On Tue, 2006-02-21 at 11:17 -0800, eric cartman wrote:
> Hello to everyone,
>
> I have a small problem using PostgreSQL.
> The problem is that I create a database and some tables through ant
> and an .sql file.
> Then by using DatabaseMetaData class and method getTables(..)I can
> make a list of the newly created tables, implying that everything
> worked fine.
>
> But when I am trying to Insert values into tables, i get the message
> 'relation <name> does not exist'.
>
> How can this be possible?
>
>
> Thank you all in advance.
>
> T.Panos
>
>
> ______________________________________________________________________
> Brings words and photos together (easily) with
> PhotoMail  - it's free and works with Yahoo! Mail.

pgsql-jdbc by date:

Previous
From: eric cartman
Date:
Subject: relation does not exist
Next
From: Kris Jurka
Date:
Subject: Re: relation does not exist