CDB_Group_CreateGroup should not return role, since it's an internal implementation detail

This commit is contained in:
Juan Ignacio Sánchez Lara
2015-08-10 13:44:06 +02:00
parent b633466724
commit 1279742e50

View File

@@ -1,6 +1,7 @@
-- Creates a new group
CREATE OR REPLACE
FUNCTION cartodb.CDB_Group_CreateGroup(group_name text)
RETURNS TEXT AS $$
RETURNS VOID AS $$
DECLARE
cdb_group_role TEXT;
BEGIN
@@ -10,7 +11,6 @@ BEGIN
THEN
EXECUTE 'CREATE ROLE "' || cdb_group_role || '" NOLOGIN;';
END IF;
RETURN cdb_group_role;
END
$$ LANGUAGE PLPGSQL;