8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 05:23:03 +01:00

Fixed bug CORE-6206 : VARCHAR of insufficient length used for set bind of decfloat to varchar

This commit is contained in:
hvlad 2019-12-13 15:11:27 +02:00
parent a791345283
commit bf01700028

View File

@ -248,6 +248,10 @@ bool CoercionRule::coerce(dsc* d) const
if (toMask & FLD_has_sub)
d->setBlobSubType(toDsc.getBlobSubType());
// varchar
if (d->dsc_dtype == dtype_varying)
d->dsc_length += sizeof(USHORT);
return true;
}