[MDEV-19026] Unable to create a function in mariadb even when function in deterministic Created: 2019-03-22 Updated: 2019-03-23 Resolved: 2019-03-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Stored routines |
| Affects Version/s: | 10.2.15 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | anup b | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
While creating a function in mariadb, I am getting the error - SQL Error (1419): You do not have the SUPER privilege and binary logging is enabled (you might want to use the less safe log_bin_trust_function_creators variable)
I am using mariadb on AWS RDS, it's version is 10.2.15. *Following are the server params - * grants on the users creating this function - |
| Comments |
| Comment by Elena Stepanova [ 2019-03-22 ] |
|
You do not have the SUPER privilege, binary logging is enabled, log_bin_trust_function_creators is not. The error message seems perfectly accurate. What are you reporting as a bug here? If you need help configuring your instance, please seek it from public forums and community mailing lists. You might also consider acquiring a support contract. If you already have one, please file a support ticket there. |
| Comment by anup b [ 2019-03-23 ] |
|
I am referring documentation at - https://mariadb.com/kb/en/library/stored-routine-privileges/ It says - "To create a stored routine, the CREATE ROUTINE privilege is needed. The SUPER privilege is required if a DEFINER is declared that's not the creator's account (see DEFINER clause below). The SUPER privilege is also required if statement-based binary logging is used. See Binary Logging of Stored Routines for more details." I am not specifying definer (defaulting to creator's account), with the set up mentioned above, I am able to create procedures but not functions. It nowhere mentions about SUPER priv. |