Return type bug in functions

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Return type bug in functions
Дата
Msg-id 20030511185709.B86597-100000@houston.familyhealth.com.au
обсуждение исходный текст
Ответы Re: Return type bug in functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi Guys,

What's with this:

test=# create function foo() returns integer as 'select 1;' language
'sql';
CREATE FUNCTION
test=# create function foo2() returns "integer" as 'select 1;' language
'sql';
ERROR:  Type "integer" does not exist

Why can't you quote return types?  Isn't that inconsistent with the rest
of Postgres?  Also, what about user-defined types that have spaces,
japanese characters, etc.?

Noticed this while working on phpPgAdmin...

Chris



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Plans for index names unique to a table?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Return type bug in functions