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:
parent
e8787500d7
commit
d01fff6fbb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user