Unix Technical Forum

Table and Column name folding question

This is a discussion on Table and Column name folding question within the pgsql Interfaces odbc forums, part of the PostgreSQL category; --> Hi, I have a Clarion generated application that uses both quoted and unquoted table and column names. It is ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces odbc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008, 02:01 AM
Joost Kraaijeveld
 
Posts: n/a
Default Table and Column name folding question

Hi,

I have a Clarion generated application that uses both quoted and unquoted table and column names. It is not consistant in the use of quotes: the same table sometimes is used with and sometimes without quotes. When used with quotes, the name of the table/column is always uppercase. Without quotes it is in lowercase.

The PostgreSQL docs say that unquoted names are folded to lower case.

But does that also mean that quoted upper case table and column names cannot be used to access a table or column that is created without quotes (lower case)?



Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.Kraaijeveld@Askesis.nl
web: www.askesis.nl

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2008, 02:01 AM
Jeff Eckermann
 
Posts: n/a
Default Re: Table and Column name folding question

--- Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
wrote:

> Hi,
>
> I have a Clarion generated application that uses
> both quoted and unquoted table and column names. It
> is not consistant in the use of quotes: the same
> table sometimes is used with and sometimes without
> quotes. When used with quotes, the name of the
> table/column is always uppercase. Without quotes it
> is in lowercase.
>
> The PostgreSQL docs say that unquoted names are
> folded to lower case.
>
> But does that also mean that quoted upper case table
> and column names cannot be used to access a table or
> column that is created without quotes (lower case)?


Correct. PostgreSQL will look for an exact match,
where quoted identifier (table, column etc.) names are
used.

There is a great deal of discussion of this question
in the list archives (try the pgsql-general list).

>
>
>
> Groeten,
>
> Joost Kraaijeveld
> Askesis B.V.
> Molukkenstraat 14
> 6524NB Nijmegen
> tel: 024-3888063 / 06-51855277
> fax: 024-3608416
> e-mail: J.Kraaijeveld@Askesis.nl
> web: www.askesis.nl
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>





__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com



---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:57 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com