Re: select function & search_path problem/bug?

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: select function & search_path problem/bug?
Дата
Msg-id 4125D4C6.1020601@archonet.com
обсуждение исходный текст
Ответ на select function & search_path problem/bug?  (ivan <iv@psycho.pl>)
Список pgsql-hackers
ivan wrote:
> hi,
> 
> i have a problem with selecting function :
> 
> db=# select auxilium.exists('arx.mods', 'r');
>  exists
> --------
>  t
> (1 row)
> 
> db=# select exists('arx.mods', 'r');
> ERROR:  syntax error at or near "'arx.mods'" at character 15

I believe the problem here is that exists is a reserved word (as in 
SELECT ... FROM ... WHERE EXISTS ...)

I think you should be ok if you quote your function name  SELECT "exists"(...)
Personally, I'd change it's name.

--   Richard Huxton  Archonet Ltd


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

Предыдущее
От: ivan
Дата:
Сообщение: select function & search_path problem/bug?
Следующее
От: Devrim GUNDUZ
Дата:
Сообщение: Re: All three packages ...