You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-1822 interim checkin
This commit is contained in:
@ -1036,6 +1036,11 @@ inline void Row::setFloatField(float val, uint32_t colIndex)
|
||||
|
||||
inline void Row::setLongDoubleField(long double val, uint32_t colIndex)
|
||||
{
|
||||
if (sizeof(long double) == 16)
|
||||
{
|
||||
// zero out the unused portion as there may be garbage there.
|
||||
*((uint64_t*)&val+1) &= 0x000000000000FFFFULL;
|
||||
}
|
||||
*((long double*) &data[offsets[colIndex]]) = val;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user