[fix] min function of not null varchar column get error result (#8479)

This commit is contained in:
HappenLee
2022-03-16 11:38:55 +08:00
committed by GitHub
parent 3ba4de0d27
commit d39c021d71

View File

@ -193,6 +193,7 @@ public:
StringVal max_val;
max_val.ptr = ctx->allocate(sv.len);
memcpy(max_val.ptr, sv.ptr, sv.len);
max_val.len = sv.len;
return max_val;
} else if constexpr (std::is_same_v<Val, DateTimeVal>) {