Re: Operator is not unique

Поиск
Список
Период
Сортировка
От Fabrízio de Royes Mello
Тема Re: Operator is not unique
Дата
Msg-id CAPfkCSBb6_18z9snrVA=U5Oa3NzZ3QKDzFq+FL8_ygEk2W+6uA@mail.gmail.com
обсуждение исходный текст
Ответ на Operator is not unique  (PegoraroF10 <marcos@f10.com.br>)
Ответы Re: Operator is not unique
Список pgsql-general


Em ter, 24 de set de 2019 às 10:35, PegoraroF10 <marcos@f10.com.br> escreveu:
>
> If I do ...
> select 1::NUMERIC + 1::BIGINT;
>
> I get ...
> [42725] ERROR: operator is not unique: numeric + bigint Hint: Could not
> choose a best candidate operator. You might need to add explicit type casts.
>

Witch version are you using? I tried it against current master and everything is ok:

fabrizio=# SELECT 1::NUMERIC + 1::BIGINT;
 ?column?
----------
        2
(1 row)


> This error means I have more than one way to calculate that formula ?
> Did I create that operator erroneously ?
>

Did you created an operator for it? Why?

Regards,

--
   Fabrízio de Royes Mello         Timbira - http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento

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

Предыдущее
От: PegoraroF10
Дата:
Сообщение: Operator is not unique
Следующее
От: PegoraroF10
Дата:
Сообщение: Re: Operator is not unique