MySQL で ストアドFUNCTION 作成で、
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)
が出たら、
DETERMINISTIC、NO SQL、または READS SQL DATA のいずれかを CREATE FUNCTION ~BEGINの間に指定しないとならない。
詳しくは、、MySQLのマニュアルで。
CREATE FUNCTION somefunc (a INT) RETURN INT
DETERMINISTIC
BEGIN