14 lines
236 B
MySQL
14 lines
236 B
MySQL
|
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 ;
|