Como utilizo está função? CORRETAMENTE
CREATE FUNCTION FN_DESC(X DECIMAL(5,2),Y INT)
RETURNS DECIMAL(5,2)
RETURN ((X*Y)*0.7);
Me retorna seguinte erro: Error Code: 1418. This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you might want to use the less safe log_bin_trust_function_creators variable)