Re: [SQL] SQL update function faililed in Webmin Interface

From: Richard Huxton <dev(at)archonet(dot)com>
To: Kathiravan Velusamy <kathiravan_velusamy(at)yahoo(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [SQL] SQL update function faililed in Webmin Interface
Date: 2004-10-20 07:37:01
Message-ID: 4176159D.8050101@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Kathiravan Velusamy wrote:
> I created database called "test" and created table name called "one"
> for that DB, which contains filed name "Name" with varchar(10) as a
> type and allows Null values.

The issue here is that you have created a column "Name" with quotes,
which means it is case-sensitive.

> "SQL update "one" set Name = 'Second1' where oid = 25349 failed :
> column "name" of relation "one" does not exist".

You are then trying to access it without quotes which means it gets
folded to lower-case "name" (look carefully at the error message).

If you quote the name when you create it, ALWAYS quote it. If you never
quote names then you won't have any problems.

It might be that the webmin module quoted the column-name for you
without your knowledge. You'll need to consult your webmin documentation
for details.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Leonardo Francalanci 2004-10-20 07:39:44 files ending with .1 or .2
Previous Message Henry Combrinck 2004-10-20 07:16:41 Re: Where clause limited to 8 items?

Browse pgsql-sql by date

  From Date Subject
Next Message Scott Marlowe 2004-10-20 07:49:09 Re: SQL update function faililed in Webmin Interface
Previous Message Kathiravan Velusamy 2004-10-20 07:03:59 SQL update function faililed in Webmin Interface