Re: parser oddity (t.count)

Поиск
Список
Период
Сортировка
От Andreas Zeugswetter
Тема Re: parser oddity (t.count)
Дата
Msg-id 00052608293001.00143@zeus
обсуждение исходный текст
Ответ на Re: parser oddity (t.count)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> to hear about, foo.bar and bar(foo) are considered near-equivalent
> notations by the parser.  It looks like when it couldn't find 'count' as
> a field name, it tried and succeeded to interpret it as a function call
> instead.
> 

> It works in the other direction too: field(foo) will be interpreted as
> foo.field if foo has a column named field.
> 
> This equivalence can be pretty confusing if you don't know about it, but
> I'm hesitant to suggest ripping it out because of the risk of breaking
> old applications.  Anyone have strong opinions one way or the other?

This feature is sacrosanct for me, if you ripp it, you take away the
feature to add calculated columns to tables.

The important part for me, is that foo.calcit calls the function calcit(foo).

Andreas


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Berkeley DB...
Следующее
От: "Matthias Urlichs"
Дата:
Сообщение: Re: Berkeley DB...