0

I cannot add custom function to my MySql database, I have problems even with simple function like this

DELIMITER $$
DROP FUNCTION IF EXISTS `foo`$$
CREATE FUNCTION `foo`(IN doWork boolean) RETURNS boolean
    NO SQL
    DETERMINISTIC
BEGIN
  return doWork;

END%%
DELIMITER ;

when I execute above query , phpmyadmin show that all is ok, but when I want to call this function phpmyadmin say's that cannot find this function, also table ROUTINES in information_schema dont contains it.

1 Answer 1

1

your end delimiter is different from the defined one

replace

END%%

with

END $$
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.