pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <smarlowe@qwest.net>
To: Kathiravan Velusamy <kathiravan_velusamy@yahoo.com>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: SQL update function faililed in Webmin Interface
Date: Wed, 20 Oct 2004 01:49:09 -0600
Message-ID: <1098258549.21035.39.camel@localhost.localdomain> (raw)
In-Reply-To: <20041020070359.58088.qmail@web60709.mail.yahoo.com>
References: <20041020070359.58088.qmail@web60709.mail.yahoo.com>

On Wed, 2004-10-20 at 01:03, Kathiravan Velusamy wrote:
> Hello All,
>            I am a newbie to PostgreSQL. I am using postgreSQL 7.4.5 in
> HP-Unix 11.11 PA , and 11.23 PA.
>           I have a problem with postgreSQL Webmin (Webmin Version
> 1.070) testing in update function.
>           This problem exists only when i create a new data base
> through webmin interface, 
>           and insert some values,and modify those values afterwards. 
>  
> For E.g :
>     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.
>    I inserted values for two rows as first and second, it can be
> viewed perfectly. 
> But when i select second row (Which contains string "second" as value)
> to edit, 
> and change it value as "second1" instead of "second", it throws me
> following error when i saved it : 
>  
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>  
> "SQL update "one" set Name = 'Second1' where oid = 25349 failed :
> column "name" of relation "one" does not exist".
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>  
> But when i created the database without using this Webmin interface
>  ($ echo "create table one(Name varchar(10))"|psql test ), 
> and then edit with webmin interface means it works well and get
> updated.
> Is there any problem with postgreSQL or with Webmin interface ?
> Any idea to solve this issue ?
>  

It looks like the table is being defined with the column quoted, like
this:

create table one ("Name" text, moredefshere...)

but accessed without quotes, like above.  Whether a database folds to
upper or lower case, the columns need to be accessed consistenly, either
all quoted or never quoted.  An application that mixes quoting and not
quoting identifiers is going to have problems.




view thread (3+ messages)

Message-ID: <1098258549.21035.39.camel@localhost.localdomain>
Permalink:  ../1098258549.21035.39.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1098258549.21035.39.camel@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: smarlowe@qwest.net, kathiravan_velusamy@yahoo.com, pgsql-general@postgresql.org
  Subject: Re: SQL update function faililed in Webmin Interface
  In-Reply-To: <1098258549.21035.39.camel@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox