8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:43:02 +01:00

Fixed DECFLOAT coercion

This commit is contained in:
AlexPeshkoff 2019-11-08 20:15:51 +03:00 committed by Alexander Peshkov
parent e8787500d7
commit d01fff6fbb

View File

@ -4942,7 +4942,7 @@ decfloat_type
$$ = newNode<dsql_fld>();
if (precision)
$$->flags |= FLD_has_scale;
$$->flags |= FLD_has_len;
$$->precision = precision == 0 ? 34 : (USHORT) precision;
$$->dtype = precision == 16 ? dtype_dec64 : dtype_dec128;
$$->length = precision == 16 ? sizeof(Decimal64) : sizeof(Decimal128);