Re: starne error from select 1!=-1

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: starne error from select 1!=-1
Дата
Msg-id 10145.1145134831@sss.pgh.pa.us
обсуждение исходный текст
Ответ на starne error from select 1!=-1  ("Andrus" <eetasoft@online.ee>)
Список pgsql-general
"Andrus" <eetasoft@online.ee> writes:
> select 1!=-1
> ERROR:  operator does not exist: integer !=- integer

> Isn't this a bit stange ?

No.  We couldn't really parse this any other way without disallowing -
(and +) altogether in multi-character operator names.  There's a special
hack for SQL-spec compatibility, but it doesn't trigger in this case;
see

http://www.postgresql.org/docs/8.1/static/sql-syntax.html#SQL-SYNTAX-OPERATORS

            regards, tom lane

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

Предыдущее
От: "Andrus"
Дата:
Сообщение: starne error from select 1!=-1
Следующее
От: Francisco Reyes
Дата:
Сообщение: Re: Hardware related question: 3ware 9500S