Re: Proposal for resolving casting issues

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Proposal for resolving casting issues
Дата
Msg-id 2051.1032290780@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Proposal for resolving casting issues  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I need a clarification.  In the non-assignment case, does:
>     WHERE numericcol = numericcol * 3.14159
> evaluate "numericcol * 3.14159" as a numeric?

Yup (given my proposed changes that is).

> And does:
>     WHERE 5.55 = numericcol * 3.14159
> evaluate "numericcol * 3.14159" as a numeric too?

Yup.  The context does not matter: when we have foo * bar, we are going
to decide which kind of * operator is meant without regard to
surrounding context.  It's very much a bottom-up process, and has to be.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Proposal for resolving casting issues
Следующее
От: Tom Lane
Дата:
Сообщение: Re: RPMS for 7.3 beta.