salix/db/versions/.archive/10459-chocolateMedeola/01-createFunctionCurdate.sql

14 lines
236 B
MySQL
Raw Permalink Normal View History

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