dbTalk Databases Forums  

[BUGS] case sensitive identifiers in 7.3.4

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] case sensitive identifiers in 7.3.4 in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dana Hudes
 
Posts: n/a

Default [BUGS] case sensitive identifiers in 7.3.4 - 07-07-2004 , 11:34 PM






The documentation clearly states in section "1.1.1 Identifiers and
Keywords" that "Identifier and key word names are case insensitive".
It goes on to give an example where a column name is used in lower case
and in upper case or any mixture.

I have found that the actual implemented behavior is not
in conformance with the above. It can be demonstrated in psql
if you create a column whose name is mixed case , e.g. "DocRoot" in table
"websites" that
select "DocRoot" from "websites";
works and that
select "docroot" from "websites" does not.
This isn't specific to psql. I found it when using the Class:BI Perl
library (built on Ima:BI, DBI, and DBD::Pg ). Somewhere between my code
and the database the column name was forced to lowercase and therefore the
query faild. As noted I reproduce this behavior with psql.

this is on SuSE 9.0 with postgresql 7.3.4-53




---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Reply With Quote
  #2  
Old   
Peter Eisentraut
 
Posts: n/a

Default Re: [BUGS] case sensitive identifiers in 7.3.4 - 07-08-2004 , 12:41 AM






Dana Hudes wrote:
Quote:
The documentation clearly states in section "1.1.1 Identifiers and
Keywords" that "Identifier and key word names are case insensitive".
It goes on to give an example where a column name is used in lower
case and in upper case or any mixture.

I have found that the actual implemented behavior is not
in conformance with the above. It can be demonstrated in psql
if you create a column whose name is mixed case , e.g. "DocRoot" in
table "websites" that
select "DocRoot" from "websites";
works and that
select "docroot" from "websites" does not.
Reread the above section up to the very end and then come back.


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.