I have to add a function to my local MySQL as it is defined on the remote server for testing purposes.
But when I add a function like
CREATE FUNCTION test(test VARCHAR(64))
RETURNS VARCHAR(64)
BEGIN
return test;
END;
The function is created and visible in the ROUTINES table but when I try to use it
SELECT test();
I get an error
[42000][1305] FUNCTION test does not exist
This works absolutely fine on MySQL 5.7 but I can't seem to get it to work at all on 5.1
Any leads would be greatly appreciated.
I can't reproduce the problem: