Skip site navigation (1) Skip section navigation (2)

Re: Problem with table name in capitals.

From: Jeff Eckermann <jeff_eckermann(at)yahoo(dot)com>
To: Kurt Roeckx <Q(at)ping(dot)be>, pgsql-odbc(at)postgresql(dot)org
Subject: Re: Problem with table name in capitals.
Date: 2002-12-14 04:17:01
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc
--- Kurt Roeckx <Q(at)ping(dot)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.

In response to


pgsql-odbc by date

Next:From: Kurt RoeckxDate: 2002-12-14 13:08:23
Subject: Re: Problem with table name in capitals.
Previous:From: Kurt RoeckxDate: 2002-12-13 23:35:33
Subject: Problem with table name in capitals.

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group