1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-07 03:22:57 +03:00

Fix crash in release builds that happens in RowGroup::initRow() for wide DECIMAL

This commit is contained in:
Roman Nozdrin
2020-11-30 08:17:27 +00:00
parent 454ec4be99
commit a53119d5d5

View File

@@ -844,7 +844,11 @@ void Row::initToNull()
break; break;
case 16 : case 16 :
datatypes::Decimal::setWideDecimalNullValue(reinterpret_cast<int128_t&>(data[offsets[i]])); {
int128_t* s128ValuePtr = (int128_t*)(&data[offsets[i]]);
datatypes::TSInt128::storeUnaligned(s128ValuePtr,
datatypes::Decimal128Null);
}
break; break;
default: default:
*((int64_t*) &data[offsets[i]]) = static_cast<int64_t>(joblist::BIGINTNULL); *((int64_t*) &data[offsets[i]]) = static_cast<int64_t>(joblist::BIGINTNULL);