From: Ross J. Reedstrom <reedstrm@rice.edu>
To: Sean Weissensee <sweiss@ionsol.com.au>
Cc: pgsql-sql@postgresql.org
Subject: Re:
Date: Thu, 23 Nov 2000 14:49:57 -0600
Message-ID: <20001123144957.A23137@rice.edu> (raw)
In-Reply-To: <00ce01c052a1$667db2e0$0400a8c0@seanwin98>
References: <00ce01c052a1$667db2e0$0400a8c0@seanwin98>
On Mon, Nov 20, 2000 at 01:24:32PM +1000, Sean Weissensee wrote:
> Why does this error come up
>
> ionsol=> update quickstock set ItemDesc = '10000',Qty = 0.0,salesprice = 0
> .0 where StockID = '8597' \g
> ERROR: Relation 'quickstock' does not have attribute 'itemdesc'
>
> when ItemDesc does exist.
Because SQL is case insensitive, by default. Postgresql implements this by
downcasing all identifiers (table and column names) unless quoted with
double quotes. I'm guessing that you created this table via MS-Access. The
ODBC driver quotes identifiers by default.
Try this:
update quickstock set "ItemDesc" = '10000',"Qty" = 0.0,salesprice =
0.0 where "StockID" = '8597' \g
Ross
--
Open source code is like a natural resource, it's the result of providing
food and sunshine to programmers, and then staying out of their way.
[...] [It] is not going away because it has utility for both the developers
and users independent of economic motivations. Jim Flynn, Sunnyvale, Calif.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: reedstrm@rice.edu, sweiss@ionsol.com.au
Subject: Re:
In-Reply-To: <20001123144957.A23137@rice.edu>
References: <00ce01c052a1$667db2e0$0400a8c0@seanwin98> <20001123144957.A23137@rice.edu>
* 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