Re: Operator script error

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Bartosz Dmytrak <bdmytrak(at)eranet(dot)pl>
Cc: PgAdmin Support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: Operator script error
Date: 2012-03-12 20:29:57
Message-ID: 1331584197.2467.55.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)(at)#(NONE, _text) -- Lack of quotation
>
> -- DROP OPERATOR Calc(dot)(at)#(NONE, _text); -- Lack of quotation
>
> CREATE OPERATOR Calc(dot)(at)#(
> PROCEDURE = """Calc"".""doSomething""", -- Wrong quotation
> RIGHTARG = _text);
> COMMENT ON OPERATOR Calc(dot)(at)#(NONE, _text) IS 'this is comment'; -- Lack of
> quotation
>
>
> Schema name and function should be quoted properly:
>
> -- Operator: "Calc"(dot)(at)#(NONE, _text)
>
> -- DROP OPERATOR "Calc"(dot)(at)#(NONE, _text);
>
> CREATE OPERATOR "Calc"(dot)(at)#(
> PROCEDURE ="Calc"."doSomething",
> RIGHTARG = _text);
> COMMENT ON OPERATOR "Calc"(dot)(at)#(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

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Guillaume Lelarge 2012-03-12 20:33:23 Re: feature request
Previous Message Guillaume Lelarge 2012-03-12 20:28:28 Re: 1.15 Dev : Insert fails