Re: Case Preservation disregarding case sensitivity? - Mailing list pgsql-sql

From Frank Bax
Subject Re: Case Preservation disregarding case sensitivity?
Date
Msg-id 5.2.1.1.0.20061027214608.04129070@pop6.sympatico.ca
Whole thread Raw
In response to Case Preservation disregarding case sensitivity?  (beau hargis <beauh@bluefrogmobile.com>)
List pgsql-sql
At 07:23 PM 10/27/06, beau hargis wrote:
>I am aware of the double-quote 'feature' which indicates that an element
>should be treated in a case-sensitive way. This as been the 'answer' to every
>question of this sort. This 'feature' does not solve the problem and
>introduces other problems.


If you use double-quotes when creating the table, you need to use 
double-quotes EVERY time you access those elements.  Neither of your two 
examples (that produced errors) have double quotes.


>ALTER TABLE user_profile ADD CONSTRAINT fk_uproftype  FOREIGN KEY
>(userProfileTypeId) REFERENCES user_profile_type (userProfileTypeId);
>
>ERROR:  column "userprofiletypeid" referenced in foreign key constraint does
>not exist



>insert into user_profile_type
>(userProfileTypeId,userProfileType) VALUES(1,'ABNORMAL');
>
>ERROR: column "userprofiletypeid" of relation "user_profile_type" does not
>exist


The second query should be:

insert into user_profile_type ("userProfileTypeId","userProfileType") 
VALUES(1,'ABNORMAL');




pgsql-sql by date:

Previous
From: beau hargis
Date:
Subject: Case Preservation disregarding case sensitivity?
Next
From: Joe
Date:
Subject: Re: Case Preservation disregarding case sensitivity?