     DECLARE m    SMALLINT DEFAULT (a + 11*h + 22*L) DIV 451;
     DECLARE v100 SMALLINT DEFAULT h + L - 7*m + 114;
         
-    RETURN  STR_TO_DATE(
+    RETURN STR_TO_DATE(
                 CONCAT(
                     p_year
                 ,   '-'

-- 
-- Returns DATETIME of beginning of round hour of given DATETIME.
-- 
-- Example:
--
-- SELECT start_of_hour('2011-03-24 11:17:08');
-- Returns: '2011-03-24 11:00:00' (as DATETIME)
--

DELIMITER $$

                )
            ,   '%Y-%c-%e'
            );
END $$

DELIMITER ;
