12 lines
223 B
MySQL
12 lines
223 B
MySQL
|
DROP FUNCTION IF EXISTS `util`.`NOW`;
|
||
|
DELIMITER $$
|
||
|
CREATE DEFINER=`root`@`localhost` FUNCTION `util`.`NOW`()
|
||
|
RETURNS DATETIME
|
||
|
DETERMINISTIC
|
||
|
BEGIN
|
||
|
/**
|
||
|
* @return The mock datetime
|
||
|
*/
|
||
|
RETURN mockTime();
|
||
|
END$$
|
||
|
DELIMITER ;
|