Re: Case Preservation disregarding case sensitivity?

From: Frank Bax <fbax(at)sympatico(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Case Preservation disregarding case sensitivity?
Date: 2006-10-28 01:50:22
Message-ID: 5.2.1.1.0.20061027214608.04129070@pop6.sympatico.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers 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');

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe 2006-10-28 02:38:52 Re: Case Preservation disregarding case sensitivity?
Previous Message beau hargis 2006-10-27 23:23:37 Case Preservation disregarding case sensitivity?

Browse pgsql-sql by date

  From Date Subject
Next Message Joe 2006-10-28 02:38:52 Re: Case Preservation disregarding case sensitivity?
Previous Message beau hargis 2006-10-27 23:23:37 Case Preservation disregarding case sensitivity?