16 lines
318 B
MySQL
16 lines
318 B
MySQL
|
DROP FUNCTION IF EXISTS account.userGetId;
|
||
|
|
||
|
DELIMITER $$
|
||
|
CREATE DEFINER=`root`@`%` FUNCTION `account`.`userGetId`() RETURNS int(11)
|
||
|
READS SQL DATA
|
||
|
DETERMINISTIC
|
||
|
BEGIN
|
||
|
/**
|
||
|
* @deprecated Use myUser_getId()
|
||
|
*/
|
||
|
RETURN myUser_getId();
|
||
|
END$$
|
||
|
DELIMITER ;
|
||
|
|
||
|
GRANT EXECUTE ON FUNCTION account.userGetId TO guest@localhost;
|