Re: doesn't recognize "!=-" (not equal to a negative value)

From: Oisin Glynn <me(at)oisinglynn(dot)com>
To: Paul Tilles <Paul(dot)Tilles(at)noaa(dot)gov>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: doesn't recognize "!=-" (not equal to a negative value)
Date: 2006-07-11 21:01:02
Message-ID: 44B4118E.7000105@oisinglynn.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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!

Oisin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-07-11 21:16:32 Re: troubleshooting 8.1.2
Previous Message Ed L. 2006-07-11 20:56:35 Re: troubleshooting 8.1.2