Re: operator is only a shell - Error

Поиск
Список
Период
Сортировка
От Greg Sabino Mullane
Тема Re: operator is only a shell - Error
Дата
Msg-id CAKAnmmKe-0KV4vkEjaGvG5KYW+hsJboHt0OmkhZq7FjWhKtyWg@mail.gmail.com
обсуждение исходный текст
Ответ на operator is only a shell - Error  (Rajesh S <rajesh.s@fincuro.com>)
Ответы Re: operator is only a shell - Error
Список pgsql-general
On Fri, Mar 15, 2024 at 6:26 AM Rajesh S <rajesh.s@fincuro.com> wrote:

I wanted to implement a new "=" (equal) operator with LEFTARG as numeric and RIGHTARG as varchar.  But after creating the function and operator, psql shows the error "operator is only a shell: character varying = numeric

Your operator has numeric on the left and varchar on the right. But your query is doing numeric on the RIGHT. Probably want to make a matching one to cover both cases.

Cheers,
Greg

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

Предыдущее
От: Christophe Pettus
Дата:
Сообщение: Re: select results on pg_class incomplete
Следующее
От: Greg Sabino Mullane
Дата:
Сообщение: Re: select results on pg_class incomplete