DELIMITER $$ CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`VN_CURDATE`() RETURNS date DETERMINISTIC BEGIN /** * @return The mock date */ RETURN DATE(mockTime()); END$$ DELIMITER ;