Re: generic builtin functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: generic builtin functions
Дата
Msg-id 11179.1131650715@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: generic builtin functions  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> Maybe my conception of enums is different from yours. My conception is
> basically that of C enums. Where they're purely a creature of the syntax and
> type system. At run-time they don't make any effort to prevent you from
> treating them as integers.

Well, C is notorious for its weak notions of type, so I hardly think
that counts as precedent for what we should do in SQL ;-)

I don't mind offering a cast from enum to integer, at all, but I think
it needs to be explicit-only.
        regards, tom lane


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: generic builtin functions
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: generic builtin functions