MySQL CREATE FUNCTION fails on a shared webserver -
I have the following work when I try to create it on the webserver, then
I did not have the same problem with any other webhosting (and exact functions), how can I fix this? (I can not change MySQL settings)has been created `has_action_access` (in_role VARCHAR (255), in_request VARCHAR (255), in_action VARCHAR (255)) Return Tinyint (1) READS SQL data transfer start current current_role VARCHAR (255); DECLARE found, cont TINYINT (1) DEFAULT 0; SET current_role = in_role; Searched: Select repetition from COUNT (*) to cyp_action_access where request = in_request and action = in_action and role = current_role I found; If found = 0 then select COUNT (*) from cyp_roles where name in name = current_role; Select cont = 1 if inherited from cyp_roles where current_role in current = current_role; end if; end if; Until (cont = 0 or found> 0) repeat the end; Returns found; End;
- The version of MySQL Server is
5.0.90-log
.
Your user does not have the super privilege You need to contact your web hosting provider and send them It has to be updated. If they will not request that option to execute the script for you.
Comments
Post a Comment