Commit 0c128c42 authored by Frank Bergmann's avatar Frank Bergmann

- returning email for name of a party

parent eb4931b4
Pipeline #65 failed with stages
......@@ -310,14 +310,13 @@ end;' language 'plpgsql';
create or replace function party__name (integer)
returns varchar as '
declare
party_id alias for $1;
p_party_id alias for $1;
begin
if party_id = -1 then
if p_party_id = -1 then
return ''The Public'';
else
return email from parties where party_id = party_id;
return email from parties p where p.party_id = p_party_id;
end if;
end;' language 'plpgsql' immutable strict;
create or replace function party__email (integer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment