Operator script error - Mailing list pgadmin-support

From Bartosz Dmytrak
Subject Operator script error
Date
Msg-id CAD8_UcZ35wH9GWsTyC47ZsOjdMg8aaWW_DHEXcbThKQg1tT7gg@mail.gmail.com
Whole thread Raw
Responses Re: Operator script error  (Guillaume Lelarge <guillaume@lelarge.info>)
List pgadmin-support
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';


Regards,
Bartek

pgadmin-support by date:

Previous
From: Bartosz Dmytrak
Date:
Subject: Re: Set schema in pgAdmin
Next
From: David Greco
Date:
Subject: Debugger off by one line