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
MDEV-25080 Fix a corner case in DataConvert::joinColTypeForUnion().
This commit is contained in:
@ -2975,7 +2975,7 @@ void DataConvert::joinColTypeForUnion(datatypes::SystemCatalog::TypeHolderStd& u
|
||||
case datatypes::SystemCatalog::UBIGINT:
|
||||
case datatypes::SystemCatalog::UDECIMAL:
|
||||
|
||||
if (type.scale != 0 && unionedType.scale != 0)
|
||||
if (type.scale != 0 && (unionedType.scale != 0 || isDecimal(unionedType.colDataType)))
|
||||
{
|
||||
const unsigned int digitsBeforeDecimal = type.precision - type.scale;
|
||||
const unsigned int digitsBeforeDecimalUnion = unionedType.precision - unionedType.scale;
|
||||
|
Reference in New Issue
Block a user