Closed paulrutter closed 2 months ago
Please introduce a function to get the current date without time component, so this is no longer needed:
DATE(YEAR(NOW()) + '-' + MONTH(NOW()) + '-' + DAY(NOW()))
See https://www.w3schools.com/sql/func_mysql_curdate.asp for example.
https://github.com/AlaSQL/alasql/pull/1937
Naming of the function is up for debate.
https://github.com/AlaSQL/alasql/blob/ca7ecb4d38a5810d22d05ea7eac7f60f7f10ba75/src/alasqlparser.jison#L110 probably needs updating as well.
Fixed in https://github.com/AlaSQL/alasql/pull/1937
Please introduce a function to get the current date without time component, so this is no longer needed:
See https://www.w3schools.com/sql/func_mysql_curdate.asp for example.