CREATE FUNCTION error “This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA”

前端 未结 7 831
走了就别回头了
走了就别回头了 2021-01-01 17:17

Our database has a function to generate an order number. It reads a value from a Settings table, increments it, then returns the new value. For example:

CREA         


        
7条回答
  •  耶瑟儿~
    2021-01-01 17:31

    I've googled and here I am. I've found a way :

    SET GLOBAL log_bin_trust_function_creators = 1;
    

    But be careful, it may be unsafe for data recovery or replication...

提交回复
热议问题