Re: doesn't recognize "!=-" (not equal to a negative - Mailing list pgsql-general

From Scott Marlowe
Subject Re: doesn't recognize "!=-" (not equal to a negative
Date
Msg-id 1152729264.14241.27.camel@state.g2switchworks.com
Whole thread Raw
In response to Re: doesn't recognize "!=-" (not equal to a negative value)  ("Clodoaldo Pinto" <clodoaldo.pinto@gmail.com>)
Responses Re: doesn't recognize "!=-" (not equal to a negative  (Oisin Glynn <me@oisinglynn.com>)
List pgsql-general
On Wed, 2006-07-12 at 05:55, Clodoaldo Pinto wrote:
> 2006/7/11, Oisin Glynn <me@oisinglynn.com>:
> > Paul Tilles wrote:
> > > Version postgres 7.4.7:
> > >
> > > Following sql
> > >
> > > UPDATE tablename SET value = 0.0 where value!=-9.4;
> > >
> > > results in the error message
> > >
> > > ERROR:  operator does not exist: smallint !=- integer
> > > HINT:  No operator matches the given name and argument type(s). You
> > > may need to add explicit type casts.
> > >
> > > Seems that postgres has a problem parsing a "not equal negative value".
> > >
> > > Anybody know if this is fixed in later versions?
> > >
> > > Paul Tilles
> > >
> > >
> > > ---------------------------(end of broadcast)---------------------------
> > > TIP 4: Have you searched our list archives?
> > >
> > >               http://archives.postgresql.org
> > Just tested on 8.1.1  I was getting the same error but if i put a space
> > between the "=" and the "-" it works!
>
> I have already counted 6 very similar answers. Is there some problem
> with the list software that prevents people from noticing it has
> already been answered?

I think it's just the vagaries of the internet.  By the time any one of
us saw the other's response, we'd already written it.  Plus, it's an
easy question to answer, so there was little delay in thinking up a
response for most folks.

It's better than some other mailing lists I've been on, where such
questions receive thundering silence for days on end... :)

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: PostgreSQL Server Crash using plPHP or PL/Perl
Next
From: "Merlin Moncure"
Date:
Subject: Re: getting function argument names from psql?