Re: SQL problem? - Mailing list pgsql-novice

From Stephan Szabo
Subject Re: SQL problem?
Date
Msg-id 20050824101212.H90271@megazone.bigpanda.com
Whole thread Raw
In response to SQL problem?  (cbraden <cbraden@douglasknight.com>)
List pgsql-novice
On Wed, 24 Aug 2005, cbraden wrote:

> Folks,
>
> I have a simple table called "adjusters" with only these three columns:
>
> id
> adjuster
> MonthlyGoal
>
> ==========COPIED FROM PGAdminIII=============
> CREATE TABLE public.adjusters
> (
> id int4 NOT NULL DEFAULT nextval('adjusters_id_key'::text),
> "Adjuster" varchar(50),
> "MonthlyGoal" varchar(50),
> CONSTRAINT adjusters_pkey PRIMARY KEY (id)
> ) WITH OIDS;
> ==============================================
>
> The SQL "SELECT * FROM adjusters" works perfectly
>
> The SQL "SELECT * FROM adjusters ORDER BY Adjuster ASC" results in this
> message:
> ERROR: Attribute "adjuster" not found

The column is not Adjuster, but "Adjuster".  Unquoted identifiers are case
folded in SQL (although we case fold the wrong direction for spec, it
doesn't matter in this case).

pgsql-novice by date:

Previous
From: Kretschmer Andreas
Date:
Subject: Re: SQL problem?
Next
From: William Yu
Date:
Subject: Re: Transaction Questions