pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Lewis <mark.lewis@mir3.com>
To: eric cartman <panefsky@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: relation does not exist
Date: Tue, 21 Feb 2006 11:29:34 -0800
Message-ID: <1140550174.9076.371.camel@archimedes> (raw)
In-Reply-To: <20060221191703.26450.qmail@web60321.mail.yahoo.com>
References: <20060221191703.26450.qmail@web60321.mail.yahoo.com>

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.



view thread (4+ messages)  latest in thread

Message-ID: <1140550174.9076.371.camel@archimedes>
Permalink:  ../1140550174.9076.371.camel@archimedes/
Also on:    postgresql.org/message-id/1140550174.9076.371.camel@archimedes

 · 

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: mark.lewis@mir3.com, panefsky@yahoo.com
  Subject: Re: relation does not exist
  In-Reply-To: <1140550174.9076.371.camel@archimedes>
  References: <20060221191703.26450.qmail@web60321.mail.yahoo.com> <1140550174.9076.371.camel@archimedes>

* 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