Re: Operator script error

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: Operator script error
Дата
Msg-id 1331584197.2467.55.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Operator script error  (Bartosz Dmytrak <bdmytrak@eranet.pl>)
Ответы Re: Operator script error  (Bartosz Dmytrak <bdmytrak@eranet.pl>)
Список pgadmin-support
On Mon, 2012-03-12 at 14:51 +0100, Bartosz Dmytrak wrote:
> Hi,
> it looks like operator script is generated incorrectly:
> eg.
> -- Operator: Calc.@#(NONE, _text) -- Lack of quotation
> 
> -- DROP OPERATOR Calc.@#(NONE, _text); -- Lack of quotation
> 
> CREATE OPERATOR Calc.@#(
>   PROCEDURE = """Calc"".""doSomething""", -- Wrong quotation
>   RIGHTARG = _text);
> COMMENT ON OPERATOR Calc.@#(NONE, _text) IS 'this is comment'; -- Lack of
> quotation
> 
> 
> Schema name and function should be quoted properly:
> 
> -- Operator: "Calc".@#(NONE, _text)
> 
> -- DROP OPERATOR "Calc".@#(NONE, _text);
> 
> CREATE OPERATOR "Calc".@#(
>   PROCEDURE ="Calc"."doSomething",
>   RIGHTARG = _text);
> COMMENT ON OPERATOR "Calc".@#(NONE, _text) IS 'this is comment';
> 

Can you give me the script that allowed you to create the operator? The
script should contain the function definition. Without it, it would be a
lot of work to reproduce your issue.


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com



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

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: 1.15 Dev : Insert fails
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: feature request