From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
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 |
Date: | 2006-07-11 20:18:55 |
Message-ID: | 200607112018.k6BKItu22149@momjian.us |
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.
Have you tried?
value != -9.4
---------------------------------------------------------------------------
>
> 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
--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Guido Neitzer | 2006-07-11 20:20:56 | Re: pgsql vs mysql |
Previous Message | Jan Wieck | 2006-07-11 19:48:26 | Re: Help making a plpgsql function? |