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

Поиск
Список
Период
Сортировка
От Paul Tilles
Тема Re: doesn't recognize "!=-" (not equal to a negative value)
Дата
Msg-id 44B40981.6080706@noaa.gov
обсуждение исходный текст
Ответ на doesn't recognize "!=-" (not equal to a negative value)  (Paul Tilles <Paul.Tilles@noaa.gov>)
Ответы Re: doesn't recognize "!=-" (not equal to a negative value)  (David Fetter <david@fetter.org>)
Re: doesn't recognize "!=-" (not equal to a negative value)  ("hubert depesz lubaczewski" <depesz@gmail.com>)
Список pgsql-general
Yes.  That works.  I think that the parser should work properly either way.

Paul

Bruce Momjian wrote:
> 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
>>
>
>

В списке pgsql-general по дате отправления:

Предыдущее
От: "Tim Hart"
Дата:
Сообщение: Re: doesn't recognize "!=-" (not equal to a negative value)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: troubleshooting 8.1.2