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

From: Paul Tilles <Paul(dot)Tilles(at)noaa(dot)gov>
To: pgsql-general(at)postgresql(dot)org
Subject: doesn't recognize "!=-" (not equal to a negative value)
Date: 2006-07-11 17:11:16
Message-ID: 44B3DBB4.3080608@noaa.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jan Wieck 2006-07-11 17:23:55 Re: pgsql vs mysql
Previous Message Scott Marlowe 2006-07-11 17:08:47 Re: pgsql vs mysql