Hi
mysql returns ERROR 1419 (HY000) You do not have the SUPER privilege and binary logging is enabled.
I'm trying to create a UDF,like this:
delimiter //
CREATE FUNCTION myfunc_name(
p_a INT,
p_b INT
) RETURNS int(11)
READS SQL DATA NOT DETERMINISTIC
BEGIN
declare ret INT;
select count(id)
into ret
from my_table
where key_a = p_a
and key_b = p_b;
return ret;
END//
delimiter ;
How can I fix ti?