Received: from ncc1701.cistron.net (ncc1701.cistron.net [195.64.68.38]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6QJOMf81872 for ; Thu, 26 Jul 2001 15:24:22 -0400 (EDT) (envelope-from news@uucp.cistron.nl) Received: from news by ncc1701.cistron.net with local (Exim 3.20 #1 (Debian)) id 15Pqk8-0005qI-00 for ; Thu, 26 Jul 2001 21:24:20 +0200 From: jdassen@cistron.nl (J.H.M. Dassen (Ray)) Subject: Re: What's going on here? Date: Thu, 26 Jul 2001 19:24:20 +0000 (UTC) Organization: Cistron Internet Services B.V. Lines: 30 Message-ID: References: <020501c11603$8f5cef70$8201a8c0@inspiron> X-Trace: ncc1701.cistron.net 996175460 22453 195.64.65.236 (26 Jul 2001 19:24:20 GMT) X-Complaints-To: abuse@cistron.nl To: pgsql-general@postgresql.org Errors-To: <> X-Archive-Number: 200107/948 X-Sequence-Number: 13068 Dave Cramer wrote: > ebox=# select version(); > version > ------------------------------------------------------------- > PostgreSQL 7.0.3 on i686-pc-linux-gnu, compiled by gcc 2.96 I wouldn't trust that build for production uses; see http://gcc.gnu.org/gcc-2.96.html . > ebox=# select eitemcode,itemavail from inventory where itemavail = 1 > limit 1; > eitemcode | itemavail > -----------+----------- > 6100122 | 1 > ebox=# update inventory set itemavail=0 where eitemcode=6100122; > UPDATE 0 What do you get with "select eitemcode,itemavail from inventory where eitemcode=6100122"? "UPDATE 0" means no row matched the "where" clause. If this select does return rows, something truely weird is happening. If it does not return rows, there may be some kind of typing/casting issue at work. HTH, Ray -- Javascript is EVIL! keyweed