You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-11-24 08:41:09 +03:00
MCOL-392 fix negative zero hours
Also fix some functions that were not behaving correctly
This commit is contained in:
@@ -172,6 +172,8 @@ int64_t Func_bitand::getIntVal(Row& row,
|
||||
}
|
||||
|
||||
hour |= ((time >> 40) & 0xfff);
|
||||
if ((hour >= 0) && (time >> 63))
|
||||
hour*= -1;
|
||||
min = (uint32_t)((time >> 32) & 0xff);
|
||||
sec = (uint32_t)((time >> 24) & 0xff);
|
||||
msec = (uint32_t)(time & 0xffffff);
|
||||
|
||||
Reference in New Issue
Block a user