pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Eckermann <jeff_eckermann@yahoo.com>
To: Kurt Roeckx <Q@ping.be>
To: pgsql-odbc@postgresql.org
Subject: Re: Problem with table name in capitals.
Date: Fri, 13 Dec 2002 20:17:01 -0800 (PST)
Message-ID: <20021214041701.14506.qmail@web20810.mail.yahoo.com> (raw)
In-Reply-To: <20021213233533.GA21990@ping.be>


--- Kurt Roeckx <Q@ping.be> wrote:
> When I'm using a table with capitals from excel or
> something,
> using microsoft query, I get an error that the
> relation
> "public"."table" doesn't exist.
> 
> I noticed that I got simular errors when I didn't
> put quotes
> around the name of the table.  I assume it's the
> same problem
> here?
> 
> When I rename the table/column to lower case it
> works.
> 
> Is this a problem in the ODBC driver, or in
> microsoft query? 

Neither one.  Table/column names in PostgreSQL are
case insensitive, as the SQL standard requires.  In
PostgreSQL this is achieved by forcing all names to
lower case before evaluation.  Quoted names are not
changed, as you found.  You will need to rename your
tables/columns to lower case names, or always quote
them in queries.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



view thread (6+ messages)  latest in thread

Message-ID: <20021214041701.14506.qmail@web20810.mail.yahoo.com>
Permalink:  ../20021214041701.14506.qmail@web20810.mail.yahoo.com/
Also on:    postgresql.org/message-id/20021214041701.14506.qmail@web20810.mail.yahoo.com

 · 

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-odbc@postgresql.org
  Cc: jeff_eckermann@yahoo.com, Q@ping.be
  Subject: Re: Problem with table name in capitals.
  In-Reply-To: <20021214041701.14506.qmail@web20810.mail.yahoo.com>
  References: <20021213233533.GA21990@ping.be> <20021214041701.14506.qmail@web20810.mail.yahoo.com>

* 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