public inbox for [email protected]  
help / color / mirror / Atom feed
From: Dave Cramer <[email protected]>
To: [email protected]
Subject: RE: Re: What's going on here?
Date: Thu, 26 Jul 2001 15:46:23 -0400
Message-ID: <020601c1160b$a6885b50$8201a8c0@inspiron> (raw)
In-Reply-To: <[email protected]>

ebox=# select eitemcode,itemavail from inventory where
eitemcode=6100122;
 eitemcode | itemavail 
-----------+-----------
   6100122 |         1
(1 row)

Dave

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of J.H.M. Dassen
(Ray)
Sent: July 26, 2001 3:24 PM
To: [email protected]
Subject: [GENERAL] Re: What's going on here?


Dave Cramer <[email protected]> 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





view thread (12+ messages)  latest in thread

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: [email protected]
  Cc: [email protected]
  Subject: RE: Re: What's going on here?
  In-Reply-To: <020601c1160b$a6885b50$8201a8c0@inspiron>

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

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