Re: Operator script error - Mailing list pgadmin-support

From Guillaume Lelarge
Subject Re: Operator script error
Date
Msg-id 1331584197.2467.55.camel@localhost.localdomain
Whole thread Raw
In response to Operator script error  (Bartosz Dmytrak <bdmytrak@eranet.pl>)
Responses Re: Operator script error
List 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 by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: 1.15 Dev : Insert fails
Next
From: Guillaume Lelarge
Date:
Subject: Re: feature request