MySQL Forums
Forum List  »  Stored Procedures

Characteristics like "deterministic" and "no sql"
Posted by: Rick Silva
Date: January 05, 2022 10:49AM

When I create a function in MySQL 8, I get an error if I don't specify one of the characteristics DETERMINISTIC, NO SQL, or READS SQL DATA. The error is: 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)

When I create a procedure, however, I do not get that error message. MySQL lets me create the procedure with no characteristics (or maybe the default characteristics?).

Why the difference between procedures and functions? Are characteristics not important for procedures?

Options: ReplyQuote


Subject
Views
Written By
Posted
Characteristics like "deterministic" and "no sql"
248
January 05, 2022 10:49AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.