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)SELECT SUM(GetNum(recruiting)) as recruiting,release_time,date from data_wldl_logistics_jobs WHERE job_category LIKE '%物流%' AND recruiting !='' AND recruiting !='招聘若干人' AND date IN ("2016-2","2016-3","2016-4","2016-5","2016-6","2016-7","2016-8","2016-9","2016-10","2016-11","2016-12") GROUP BY date ORDER BY release_time