You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-1647 Fix TIME regressions
Fixes the following: * Read past buffer end in intToDatetime / intToTime * Allow intToTime to convert datetime * Allow intToTime to convert shortened time values * Allow stringToTime to convert datetime and int time values * Fix saturation / bad values in intToTime and stringToTime * Fix TIME return in STR_TO_DATE() * Fix NULL return on type inequality for TIMEDIFF() * Fix zero day calculation error in ADDTIME()/SUBTIME() * Fix DATETIME to int calculation error in aggregate bit operations * Make the new harderning flags optional with -DSECURITY_HARDENED_NEW
This commit is contained in:
@ -109,12 +109,6 @@ string Func_timediff::getStrVal(rowgroup::Row& row,
|
||||
int64_t val1 = -1, val2 = -1;
|
||||
bool isDate1 = false, isDate2 = false;
|
||||
|
||||
if (type1 != type2)
|
||||
{
|
||||
isNull = true;
|
||||
return "";
|
||||
}
|
||||
|
||||
switch (type1)
|
||||
{
|
||||
case execplan::CalpontSystemCatalog::DATE:
|
||||
|
Reference in New Issue
Block a user