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

Fixed CORE-3046: Assertion after ALTER TABLE

This commit is contained in:
alexpeshkoff 2010-06-15 11:57:13 +00:00
parent 0d71f0d52d
commit 8d2b140459

View File

@ -885,8 +885,10 @@ dsc* EVL_expr(thread_db* tdbb, jrd_nod* const node)
const Format* compileFormat = (Format*) node->nod_arg[e_fld_format];
// ASF: CORE-1432 - If the the record is not on the latest format, upgrade it.
// AP: for fields that are missing in original format use record's one.
if (compileFormat &&
record->rec_format->fmt_version != compileFormat->fmt_version &&
id < compileFormat->fmt_desc.getCount() &&
!DSC_EQUIV(&impure->vlu_desc, &compileFormat->fmt_desc[id], true))
{
dsc desc = impure->vlu_desc;