Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (8.11.3/8.11.1) with SMTP id f6QJn4f90682 for ; Thu, 26 Jul 2001 15:49:04 -0400 (EDT) (envelope-from Dave@micro-automation.net) Received: (qmail 30524 invoked from network); 26 Jul 2001 19:49:02 -0000 Received: from eboxwest.ebox.com (HELO inspiron) (206.51.23.194) by net2.micro-automation.com with SMTP; 26 Jul 2001 19:49:02 -0000 Reply-To: From: "Dave Cramer" To: Subject: RE: Re: What's going on here? Date: Thu, 26 Jul 2001 15:46:23 -0400 Organization: Micro Automation Inc. Message-ID: <020601c1160b$a6885b50$8201a8c0@inspiron> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-reply-to: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Archive-Number: 200107/949 X-Sequence-Number: 13069 ebox=# select eitemcode,itemavail from inventory where eitemcode=6100122; eitemcode | itemavail -----------+----------- 6100122 | 1 (1 row) Dave -----Original Message----- From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgresql.org] On Behalf Of J.H.M. Dassen (Ray) Sent: July 26, 2001 3:24 PM To: pgsql-general@postgresql.org Subject: [GENERAL] Re: What's going on here? 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 ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster