I'm trying to get a stored procedure/function to return a set data type, but when I try, I get "You have an error in your SQL syntax ... near 'return ('one');". Any pointers? This is the first time I've tried playing with stored procedures... Thanks!
delimiter //
create function getset (set_type enum('a','b','c'))
returns set('one','two','three')
deterministic
begin
case set_type
when 'a'
return ('one');
when 'b'
return ('one,two');
when 'c'
return ('one,two,three');
end//
delimiter ;