Re: Odd "operator does not exist" message

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Odd "operator does not exist" message
Дата
Msg-id 18772.1452316179@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Odd "operator does not exist" message  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-bugs
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> Stumbled across this and it just seemed unusual - though by no means
> cryptic.

> SELECT 'text' || AS label
> ERROR:  operator does not exist: unknown ||
> The lack of a second type to the right of the operator symbol caught my
> attention.
> SELECT 1 + AS label
> ERROR: syntax error at or near "AS"
> Was seemingly what I had been expecting...

|| is allowed as a postfix operator, + is not ...

            regards, tom lane

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Odd "operator does not exist" message
Следующее
От: Alexey Lesovsky
Дата:
Сообщение: BUG #13818: PostgreSQL crashes after cronjob runs as "postgres"