Use %s for sequence name, which is already quoted
This commit is contained in:
parent
e1f8a65cce
commit
15aece1fbc
@ -137,7 +137,7 @@ BEGIN
|
|||||||
-- Here %s is needed since sequence_name has quotes
|
-- Here %s is needed since sequence_name has quotes
|
||||||
EXECUTE format('GRANT USAGE, SELECT, UPDATE ON SEQUENCE %s TO %I', sequence_name, group_role);
|
EXECUTE format('GRANT USAGE, SELECT, UPDATE ON SEQUENCE %s TO %I', sequence_name, group_role);
|
||||||
ELSE
|
ELSE
|
||||||
EXECUTE format('REVOKE ALL ON SEQUENCE %I FROM %I', sequence_name, group_role);
|
EXECUTE format('REVOKE ALL ON SEQUENCE %s FROM %I', sequence_name, group_role);
|
||||||
END IF;
|
END IF;
|
||||||
END IF;
|
END IF;
|
||||||
END LOOP;
|
END LOOP;
|
||||||
|
Loading…
Reference in New Issue
Block a user