Re: the '::' cast doesn't work in the FROM clause

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: the '::' cast doesn't work in the FROM clause
Дата
Msg-id 4E5B552502000025000407EB@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: the '::' cast doesn't work in the FROM clause  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: the '::' cast doesn't work in the FROM clause  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: the '::' cast doesn't work in the FROM clause  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-bugs
Merlin Moncure <mmoncure@gmail.com> wrote:

> yeah, that's the correct way, but why does this work?
> select val from random() as val;

If you look at the PostgreSQL reference docs for the SELECT
statement, a from_item can be a SELECT statement in parentheses or a
function call (among other things).  It cannot be an arbitrary
expression containing operators (like ::).

-Kevin

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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: the '::' cast doesn't work in the FROM clause
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: the '::' cast doesn't work in the FROM clause