Re: [GENERAL] Empty arrays with ARRAY[]

Поиск
Список
Период
Сортировка
От Brendan Jurd
Тема Re: [GENERAL] Empty arrays with ARRAY[]
Дата
Msg-id 37ed240d0711270752g50218526u5ae1db2c8395782e@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Empty arrays with ARRAY[]  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [GENERAL] Empty arrays with ARRAY[]  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
So far I've only considered the '::' cast syntax suggested in the
original proposal, e.g.:

ARRAY[]::text[]

I wonder whether we are also interested in catching CAST(), e.g.:

CAST(ARRAY[] AS text[])

I'm personally okay with leaving it at support for '::', but
admittedly I am heavily biased towards this syntax (I find CAST very
ugly).  I suppose supporting CAST as well would be the more
predictable behaviour; I think people might be surprised if we
supported one form of casting but not the other.

Comments?

Regards,
BJ


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

Предыдущее
От: Hubert FONGARNAND
Дата:
Сообщение: Re: PostGreSQL and recursive queries...
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: PG 8.3beta3 Segmentation Fault during Database Restore