SQL update function faililed in Webmin Interface

SQL update function faililed in Webmin Interface

am 20.10.2004 09:03:59 von kathiravan_velusamy

--0-1595668036-1098255839=:57800
Content-Type: text/plain; charset=us-ascii

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 ?

Thanks in Advance,
Kathir






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004



---------------------------------
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!
--0-1595668036-1098255839=:57800
Content-Type: text/html; charset=us-ascii









Hello All,
face=Arial color=#000080 size=2>

           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 ?

 

Thanks in Advance,

Kathir



 

 




---
Outgoing mail is certified Virus
Free.
Checked by AVG anti-virus system ( href="http://www.grisoft.com">http://www.grisoft.com).
Version: 6.0.778 /
Virus Database: 525 - Release Date:
10/15/2004




Do you Yahoo!?
href="http://vote.yahoo.com">vote.yahoo.com - Register online to vote today!
--0-1595668036-1098255839=:57800--

Re: SQL update function faililed in Webmin Interface

am 20.10.2004 09:37:01 von dev

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

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org