[Bug](function) fix current_date not equal to curdate (#11463)

* fix current_date not equal to curdate
This commit is contained in:
Pxl
2022-08-04 09:25:50 +08:00
committed by GitHub
parent 33053ad1fe
commit ce68d24e95
5 changed files with 21 additions and 5 deletions

View File

@ -278,6 +278,11 @@ void VecDateTimeValue::set_zero(int type) {
void VecDateTimeValue::set_type(int type) {
_type = type;
if (type == TIME_DATE) {
_hour = 0;
_minute = 0;
_second = 0;
}
}
void VecDateTimeValue::set_max_time(bool neg) {