Error Code: 1305. FUNCTION or PROCEDURE does not exist
<p>So I'm creating a function in MySQL and then trying to grant permission to use that function to a user and am unable to do so. Here's what I'm doing:</p>

<pre><code>DELIMITER $$

USE rxhelp36_scbn$$

DROP FUNCTION IF EXISTS `businessDayDiff` $$
CREATE FUNCTION `businessDayDiff` (start DATETIME, stop DATETIME) RETURNS TINYINT
  NO SQL
BEGIN
  RETURN 5 * (DATEDIFF(stop, start) DIV 7) + MID('0123444401233334012222340111123400001234000123440', 7 * WEEKDAY(start) + WEEKDAY(stop) + 1, 1);
END $$

GRANT EXECUTE ON PROCEDURE rxhelp36_scbn.businessDayDiff TO 'myuser'@'localhost';
</code></pre>

<p>Here's the error I'm getting:</p>

<pre><code>Error Code: 1305. FUNCTION or PROCEDURE businessDayDiff does not exist
</code></pre>

<p>I don't get it. I /just/ defined the function - how does it not exist?</p>