DELIMITER \\
DROP PROCEDURE IF EXISTS permissions_get\\
CREATE PROCEDURE permissions_get(in i_dataset_access_key char(32))
BEGIN

    select distinct group_access_key, user_access_key, can_read, can_add, can_edit, can_delete from dataset_permissions where dataset_access_key = i_dataset_access_key;

END\\
DELIMITER ;